Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Publish from GitHub CI #1760

Merged
merged 14 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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@v4
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
publish: true
12 changes: 0 additions & 12 deletions .github/workflows/release.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/audioplayers/example/server/public/files/audio

This file was deleted.