diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml index 36e5c56c4..37c9e435b 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 @@ -153,7 +153,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 @@ -169,7 +169,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 @@ -185,7 +185,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 @@ -201,7 +201,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 @@ -217,7 +217,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/release-prepare.yml b/.github/workflows/release-prepare.yml new file mode 100644 index 000000000..7488925f0 --- /dev/null +++ b/.github/workflows/release-prepare.yml @@ -0,0 +1,34 @@ +name: Prepare release +on: + workflow_dispatch: + inputs: + prerelease: + description: 'Version as prerelease' + required: false + default: false + type: boolean + +jobs: + call-min-flutter-test: + uses: ./.github/workflows/test.yml + with: + flutter_version: '3.22.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@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + run-versioning: ${{ inputs.prerelease == false }} + 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 1493fc301..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.19.3' - fatal_warnings: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 669aa0e50..54b150959 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 format --set-exit-if-changed - run: melos analyze ${{ inputs.fatal_warnings && '--fatal-infos' || '--no-fatal-warnings' }} @@ -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: | @@ -240,7 +240,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 @@ -312,7 +312,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 @@ -333,7 +333,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: Download virtual audio device @@ -378,7 +378,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/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