🐛 fix: Fixed worklofw #17
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: Publish to pub.dev | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
publish: | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Publish - dry run | |
run: dart pub publish --dry-run | |
- name: Publish to pub.dev | |
run: dart pub publish -f | |
- name: Create release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} |