changelog prerelease #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to pub.dev | ||
on: | ||
workflow_dispatch: | ||
push: #todo:remove | ||
release: | ||
types: [ created ] | ||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/test.yml | ||
Check failure on line 13 in .github/workflows/release.yml GitHub Actions / .github/workflows/release.ymlInvalid workflow file
|
||
secrets: inherit | ||
publish: | ||
name: Publish | ||
permissions: | ||
id-token: write # This is required for authentication using OIDC | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dart-lang/setup-dart@v1 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
- name: Add pub token | ||
run: echo ${{secrets.OAUTH_ACCESS_TOKEN}} | dart pub token add https://pub.dev | ||
- name: Install dependencies | ||
run: dart pub get | ||
- name: code format | ||
run: dart format lib/*/*.dart lib/*.dart | ||
- name: Publish pkg | ||
run: dart pub publish --server=https://pub.dartlang.org -f |