From d0a7c792f3f3c7e12fc83cf5525cc5750bdc9d72 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 24 Feb 2024 11:49:28 +0100 Subject: [PATCH 01/11] ci: Publish from GitHub CI --- .github/workflows/prepare-release.yml | 25 +++++++++++++++++++++++++ .github/workflows/publish.yml | 19 +++++++++++++++++++ .github/workflows/release.yml | 12 ------------ 3 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/prepare-release.yml create mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml new file mode 100644 index 000000000..a4d08589e --- /dev/null +++ b/.github/workflows/prepare-release.yml @@ -0,0 +1,25 @@ +name: Prepare release +on: + workflow_dispatch: + +jobs: + call-min-flutter-test: + uses: ./.github/workflows/test.yml + with: + flutter_version: '3.13.0' + fatal_warnings: false + prepare-release: + name: Prepare release + needs: call-min-flutter-test + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + run-versioning: true + publish-dry-run: true + create-pr: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..6ce106475 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Publish packages +on: + push: + branches: [main] + +jobs: + publish-packages: + name: Publish packages + permissions: + contents: write + id-token: write # Required for authentication using OIDC + runs-on: [ ubuntu-latest ] + if: contains(github.event.head_commit.message, 'chore(release)') + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + publish: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index cd5db5708..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: release -on: - push: - tags: - - '*' - -jobs: - call-min-flutter-test: - uses: ./.github/workflows/test.yml - with: - flutter_version: '3.13.0' - fatal_warnings: false From 1d96cf086172cac9d33bf13e7a10c5c47dfe1671 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 24 Feb 2024 12:11:52 +0100 Subject: [PATCH 02/11] ci: Adapt melos action --- .github/workflows/build-example.yml | 12 ++++++------ .github/workflows/test.yml | 14 +++++++------- pubspec.yaml | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml index a1ed132e0..1bb76a342 100644 --- a/.github/workflows/build-example.yml +++ b/.github/workflows/build-example.yml @@ -106,7 +106,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Example app - Build Web app working-directory: ./packages/audioplayers/example @@ -132,7 +132,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Example App - Build Android APK working-directory: ./packages/audioplayers/example @@ -148,7 +148,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Example app - Build iOS working-directory: ./packages/audioplayers/example @@ -164,7 +164,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Example app - Build macOS working-directory: ./packages/audioplayers/example @@ -180,7 +180,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Example app - Build Windows app working-directory: ./packages/audioplayers/example @@ -196,7 +196,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Install Flutter requirements for Linux run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7959da8f7..2368cd461 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -109,7 +109,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - run: melos run format-check - run: melos run analyze -- ${{ inputs.fatal_warnings && '--fatal-infos' || '--no-fatal-warnings --no-fatal-infos' }} @@ -141,7 +141,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - uses: nanasess/setup-chromedriver@v2 - name: Run Flutter integration tests @@ -198,7 +198,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Download Android emulator image run: | @@ -239,7 +239,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: List all simulators run: "xcrun simctl list devices" @@ -268,7 +268,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Run Flutter integration tests working-directory: ./packages/audioplayers/example @@ -289,7 +289,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Start audio server run: net start audiosrv - name: Disable time sync with Hyper-V & setting system date time (#1573) @@ -330,7 +330,7 @@ jobs: with: flutter-version: ${{ inputs.flutter_version }} channel: ${{ inputs.flutter_channel }} - - uses: bluefireteam/melos-action@main + - uses: bluefireteam/melos-action@v3 - name: Install Flutter requirements for Linux run: | sudo apt-get update diff --git a/pubspec.yaml b/pubspec.yaml index 8d3ccecd5..6240c674f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,4 +4,4 @@ environment: sdk: '>=3.0.0 <4.0.0' dev_dependencies: - melos: ^3.0.0 + melos: ^4.0.0 From 6dd87b9ef1a7d56372d18901a9ef11c0019208e0 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 24 Feb 2024 12:52:53 +0100 Subject: [PATCH 03/11] ci: Add prerelease option --- .github/workflows/prepare-release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index a4d08589e..ca2972e7c 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -1,6 +1,11 @@ name: Prepare release on: workflow_dispatch: + prerelease: + description: 'Version as prerelease' + required: false + default: false + type: boolean jobs: call-min-flutter-test: @@ -20,6 +25,7 @@ jobs: - uses: subosito/flutter-action@v2 - uses: bluefireteam/melos-action@v3 with: - run-versioning: true + run-versioning: ${{ inputs.prerelease == false }} + run-versioning-prerelease: ${{ inputs.prerelease == true }} publish-dry-run: true create-pr: true From 224776980bc917732069b91323f40d278fd3cf57 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 24 Feb 2024 12:58:34 +0100 Subject: [PATCH 04/11] Add missing input param (cherry picked from commit 3c3077af59bfd48ca0ffe0760ab5b112f58253cb) --- .github/workflows/prepare-release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index ca2972e7c..d8749e3cc 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -1,11 +1,12 @@ name: Prepare release on: workflow_dispatch: - prerelease: - description: 'Version as prerelease' - required: false - default: false - type: boolean + inputs: + prerelease: + description: 'Version as prerelease' + required: false + default: false + type: boolean jobs: call-min-flutter-test: From 3c7dbac9c3065bb52b548371f9eef48efddcb5cf Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 24 Feb 2024 15:24:53 +0100 Subject: [PATCH 05/11] chore: Replace folder symlink with file symlinks --- packages/audioplayers/example/server/public/files/audio | 1 - .../example/server/public/files/audio/ambient_c_motion.mp3 | 1 + .../example/server/public/files/audio/coins whitespace.wav | 1 + .../audioplayers/example/server/public/files/audio/coins.wav | 1 + .../example/server/public/files/audio/coins_no_extension | 1 + .../server/public/files/audio/coins_non_ascii_\320\270.wav" | 1 + .../audioplayers/example/server/public/files/audio/invalid.txt | 1 + .../audioplayers/example/server/public/files/audio/laser.wav | 1 + .../example/server/public/files/audio/nasa_on_a_mission.mp3 | 1 + 9 files changed, 8 insertions(+), 1 deletion(-) delete mode 120000 packages/audioplayers/example/server/public/files/audio create mode 120000 packages/audioplayers/example/server/public/files/audio/ambient_c_motion.mp3 create mode 120000 packages/audioplayers/example/server/public/files/audio/coins whitespace.wav create mode 120000 packages/audioplayers/example/server/public/files/audio/coins.wav create mode 120000 packages/audioplayers/example/server/public/files/audio/coins_no_extension create mode 120000 "packages/audioplayers/example/server/public/files/audio/coins_non_ascii_\320\270.wav" create mode 120000 packages/audioplayers/example/server/public/files/audio/invalid.txt create mode 120000 packages/audioplayers/example/server/public/files/audio/laser.wav create mode 120000 packages/audioplayers/example/server/public/files/audio/nasa_on_a_mission.mp3 diff --git a/packages/audioplayers/example/server/public/files/audio b/packages/audioplayers/example/server/public/files/audio deleted file mode 120000 index 2978ef393..000000000 --- a/packages/audioplayers/example/server/public/files/audio +++ /dev/null @@ -1 +0,0 @@ -../../../assets \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/ambient_c_motion.mp3 b/packages/audioplayers/example/server/public/files/audio/ambient_c_motion.mp3 new file mode 120000 index 000000000..8d957238f --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/ambient_c_motion.mp3 @@ -0,0 +1 @@ +../../../../assets/ambient_c_motion.mp3 \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/coins whitespace.wav b/packages/audioplayers/example/server/public/files/audio/coins whitespace.wav new file mode 120000 index 000000000..3ee7032f7 --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/coins whitespace.wav @@ -0,0 +1 @@ +../../../../assets/coins whitespace.wav \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/coins.wav b/packages/audioplayers/example/server/public/files/audio/coins.wav new file mode 120000 index 000000000..4686e7fa6 --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/coins.wav @@ -0,0 +1 @@ +../../../../assets/coins.wav \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/coins_no_extension b/packages/audioplayers/example/server/public/files/audio/coins_no_extension new file mode 120000 index 000000000..46e1773c9 --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/coins_no_extension @@ -0,0 +1 @@ +../../../../assets/coins_no_extension \ No newline at end of file diff --git "a/packages/audioplayers/example/server/public/files/audio/coins_non_ascii_\320\270.wav" "b/packages/audioplayers/example/server/public/files/audio/coins_non_ascii_\320\270.wav" new file mode 120000 index 000000000..68c497a71 --- /dev/null +++ "b/packages/audioplayers/example/server/public/files/audio/coins_non_ascii_\320\270.wav" @@ -0,0 +1 @@ +../../../../assets/coins_non_ascii_и.wav \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/invalid.txt b/packages/audioplayers/example/server/public/files/audio/invalid.txt new file mode 120000 index 000000000..0c2b4fa70 --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/invalid.txt @@ -0,0 +1 @@ +../../../../assets/invalid.txt \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/laser.wav b/packages/audioplayers/example/server/public/files/audio/laser.wav new file mode 120000 index 000000000..b9d3ddf50 --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/laser.wav @@ -0,0 +1 @@ +../../../../assets/laser.wav \ No newline at end of file diff --git a/packages/audioplayers/example/server/public/files/audio/nasa_on_a_mission.mp3 b/packages/audioplayers/example/server/public/files/audio/nasa_on_a_mission.mp3 new file mode 120000 index 000000000..ad044258d --- /dev/null +++ b/packages/audioplayers/example/server/public/files/audio/nasa_on_a_mission.mp3 @@ -0,0 +1 @@ +../../../../assets/nasa_on_a_mission.mp3 \ No newline at end of file From af7cc60882b30b45df852537bf73555366c6e6d3 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sun, 25 Feb 2024 11:49:40 +0100 Subject: [PATCH 06/11] Remove invalid files before pub --- .github/workflows/prepare-release.yml | 6 ++++++ .github/workflows/publish.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index d8749e3cc..d94f7da18 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -24,6 +24,12 @@ jobs: steps: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 + - name: Remove invalid pub files # TODO(gustl22): remove when fixed: https://github.com/dart-lang/pub/pull/4145 + run: | + rm example/assets/coins_non_ascii_и.wav + rm example/server/public/files/audio/coins_non_ascii_и.wav + working-directory: packages/audioplayers + shell: bash - uses: bluefireteam/melos-action@v3 with: run-versioning: ${{ inputs.prerelease == false }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ce106475..1af4d82da 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,12 @@ jobs: steps: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 + - name: Remove invalid pub files # TODO(gustl22): remove when fixed: https://github.com/dart-lang/pub/pull/4145 + run: | + rm example/assets/coins_non_ascii_и.wav + rm example/server/public/files/audio/coins_non_ascii_и.wav + working-directory: packages/audioplayers + shell: bash - uses: bluefireteam/melos-action@v3 with: publish: true From 591d9bc0b28650654898376fa52f85b84054e293 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sun, 25 Feb 2024 12:36:22 +0100 Subject: [PATCH 07/11] Remove invalid files from git before pub --- .github/workflows/prepare-release.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index d94f7da18..4308a612c 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -26,8 +26,8 @@ jobs: - uses: subosito/flutter-action@v2 - name: Remove invalid pub files # TODO(gustl22): remove when fixed: https://github.com/dart-lang/pub/pull/4145 run: | - rm example/assets/coins_non_ascii_и.wav - rm example/server/public/files/audio/coins_non_ascii_и.wav + git rm --cached example/assets/coins_non_ascii_и.wav + git rm --cached example/server/public/files/audio/coins_non_ascii_и.wav working-directory: packages/audioplayers shell: bash - uses: bluefireteam/melos-action@v3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1af4d82da..24f0a241b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,8 +16,8 @@ jobs: - uses: subosito/flutter-action@v2 - name: Remove invalid pub files # TODO(gustl22): remove when fixed: https://github.com/dart-lang/pub/pull/4145 run: | - rm example/assets/coins_non_ascii_и.wav - rm example/server/public/files/audio/coins_non_ascii_и.wav + git rm --cached example/assets/coins_non_ascii_и.wav + git rm --cached example/server/public/files/audio/coins_non_ascii_и.wav working-directory: packages/audioplayers shell: bash - uses: bluefireteam/melos-action@v3 From 35be73f6a545316e07ad26784a3141f8c188c5eb Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 10 Aug 2024 01:55:31 +0200 Subject: [PATCH 08/11] Update to current development --- .github/workflows/prepare-release.yml | 10 ++-------- .github/workflows/publish.yml | 8 +------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 4308a612c..0a96511ff 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -12,7 +12,7 @@ jobs: call-min-flutter-test: uses: ./.github/workflows/test.yml with: - flutter_version: '3.13.0' + flutter_version: '3.19.3' fatal_warnings: false prepare-release: name: Prepare release @@ -22,14 +22,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 - - name: Remove invalid pub files # TODO(gustl22): remove when fixed: https://github.com/dart-lang/pub/pull/4145 - run: | - git rm --cached example/assets/coins_non_ascii_и.wav - git rm --cached example/server/public/files/audio/coins_non_ascii_и.wav - working-directory: packages/audioplayers - shell: bash - uses: bluefireteam/melos-action@v3 with: run-versioning: ${{ inputs.prerelease == false }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 24f0a241b..91a1259d7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,14 +12,8 @@ jobs: runs-on: [ ubuntu-latest ] if: contains(github.event.head_commit.message, 'chore(release)') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 - - name: Remove invalid pub files # TODO(gustl22): remove when fixed: https://github.com/dart-lang/pub/pull/4145 - run: | - git rm --cached example/assets/coins_non_ascii_и.wav - git rm --cached example/server/public/files/audio/coins_non_ascii_и.wav - working-directory: packages/audioplayers - shell: bash - uses: bluefireteam/melos-action@v3 with: publish: true From aa6604de3f5e7d44abc7df8a208356b80c91b3ba Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sun, 11 Aug 2024 13:55:30 +0200 Subject: [PATCH 09/11] update min flutter version for release --- .github/workflows/prepare-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 0a96511ff..3d6a004c7 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -12,7 +12,7 @@ jobs: call-min-flutter-test: uses: ./.github/workflows/test.yml with: - flutter_version: '3.19.3' + flutter_version: '3.22.0' fatal_warnings: false prepare-release: name: Prepare release From 6bbef2e9d63aabae3a108006cae35534827a05f9 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Thu, 15 Aug 2024 23:38:00 +0200 Subject: [PATCH 10/11] ci: Publish from worklfow_dispatch tag --- ...repare-release.yml => release-prepare.yml} | 2 ++ .github/workflows/release-publish.yml | 20 +++++++++++++++++++ .github/workflows/release-tag.yml | 18 +++++++++++++++++ 3 files changed, 40 insertions(+) rename .github/workflows/{prepare-release.yml => release-prepare.yml} (91%) create mode 100644 .github/workflows/release-publish.yml create mode 100644 .github/workflows/release-tag.yml diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/release-prepare.yml similarity index 91% rename from .github/workflows/prepare-release.yml rename to .github/workflows/release-prepare.yml index 3d6a004c7..7488925f0 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/release-prepare.yml @@ -30,3 +30,5 @@ jobs: run-versioning-prerelease: ${{ inputs.prerelease == true }} publish-dry-run: true create-pr: true + git-email: contact@blue-fire.xyz + git-name: Bluefireteam diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml new file mode 100644 index 000000000..2498973b1 --- /dev/null +++ b/.github/workflows/release-publish.yml @@ -0,0 +1,20 @@ +name: Publish packages +on: + workflow_dispatch: + +jobs: + publish-packages: + name: Publish packages + permissions: + contents: write + id-token: write # Required for authentication using OIDC + runs-on: [ ubuntu-latest ] + if: contains(github.event.head_commit.message, 'chore(release)') + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + publish: true + git-email: contact@blue-fire.xyz + git-name: Bluefireteam diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml new file mode 100644 index 000000000..abb1a16fa --- /dev/null +++ b/.github/workflows/release-tag.yml @@ -0,0 +1,18 @@ +name: Tag release +on: + push: + branches: [main] + +jobs: + publish-packages: + name: Create tag for a release + permissions: + contents: write + runs-on: [ ubuntu-latest ] + if: contains(github.event.head_commit.message, 'chore(release)') + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + tag: true From 3512c9a53134189b3c6219e91651114a66c1dbe7 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sun, 18 Aug 2024 11:36:17 +0200 Subject: [PATCH 11/11] Remove duplicate publish workflow --- .github/workflows/publish.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 91a1259d7..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish packages -on: - push: - branches: [main] - -jobs: - publish-packages: - name: Publish packages - permissions: - contents: write - id-token: write # Required for authentication using OIDC - runs-on: [ ubuntu-latest ] - if: contains(github.event.head_commit.message, 'chore(release)') - steps: - - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2 - - uses: bluefireteam/melos-action@v3 - with: - publish: true