Skip to content

v0.3.1 published by fujidaiti #4

v0.3.1 published by fujidaiti

v0.3.1 published by fujidaiti #4

Workflow file for this run

name: Release new version
run-name: ${{ github.ref_name }} published by ${{ github.event.head_commit.author.name }}
on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+*"]
env:
package_dir: ./
example_dir: ./example
jobs:
publish:
name: Publish the package to pub.dev
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Install Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Flutter versioin
run: flutter --version
- name: Install dependencies
working-directory: ${{ env.package_dir }}
run: flutter pub get
- name: Code generation
working-directory: ${{ env.package_dir }}
run: dart run build_runner build
- name: Install pana
working-directory: ${{ env.package_dir }}
run: dart pub global activate pana
- name: Analize
working-directory: ${{ env.package_dir }}
run: pana --exit-code-threshold 0 --no-warning
- name: Dry run
working-directory: ${{ env.package_dir }}
run: flutter pub publish --dry-run
- name: Publish
working-directory: ${{ env.package_dir }}
if: success()
run: flutter pub publish --force
deploy-example:

Check failure on line 55 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release new version

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 55, Col: 3): Error calling workflow 'fujidaiti/primer_progress_bar/.github/workflows/deploy_example.yml@d6d5b16df12b046d350650d3e09765c7e55578ff'. The nested job 'deploy' is requesting 'contents: write', but is only allowed 'contents: read'.
needs: publish
uses: ./.github/workflows/deploy_example.yml