fix retry action #4
Workflow file for this run
This file contains hidden or 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 Nitrite Spatial | |
on: | |
push: | |
tags: | |
- 'nitrite_spatial-[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
publish: | |
name: Publish on pub.dev | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Required for authentication using OIDC | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2.12.0 | |
with: | |
channel: 'stable' | |
# This action adds a token needed for pub.dev authentication | |
- name: Install Dart | |
uses: dart-lang/setup-dart@v1.6.4 | |
with: | |
sdk: stable | |
- name: Setup Build System | |
shell: bash | |
run: | | |
chmod +x ./.github/workflows/scripts/install-tools.sh | |
./.github/workflows/scripts/install-tools.sh | |
- name: Generate Code | |
run: melos run generate | |
- name: Format Nitrite | |
run: melos run lint:all | |
- name: Publish Nitrite Spatial | |
uses: nick-fields/retry@v3 | |
with: | |
max_attempts: 10 | |
timeout_minutes: 60 | |
command: | | |
cd packages/nitrite_spatial | |
flutter pub publish --force |