Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
dungngminh committed Nov 5, 2024
1 parent 5a14314 commit 971ca7b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -24,10 +24,14 @@ jobs:
- name: Test
run: dart test --coverage=coverage

# Check version in pubspec.yaml and create a new tag, if necessary and deploy to pub.dev
- name: Check version and deploy
run: |
VERSION=$(grep 'version: ' pubspec.yaml | sed 's/version: //')
git tag -a $VERSION -m "Version $VERSION"
git push origin $VERSION
dart pub publish --dry-run
- name: Versioning
id: version
run: "echo ::set-output name=version-number::$(grep 'version: ' pubspec.yaml | sed 's/version: //')"

- name: Release to github
uses: softprops/action-gh-release@v0.1.15
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ steps.version.outputs.version-number }}
generate_release_notes: true

0 comments on commit 971ca7b

Please sign in to comment.