Merge pull request #3 from tpay-com/release/1.0.0 #4
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: | |
- '*.*.*' | |
jobs: | |
publish: | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Setup dart | |
uses: dart-lang/setup-dart@v1 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Configure Git | |
run: | | |
git config user.name "Tpay Auto Commit" | |
git config user.email [email protected] | |
- name: Publish dry run | |
run: flutter pub publish --dry-run | |
- name: Publish | |
run: flutter pub publish --force | |
- name: Create Github release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ env.RELEASE_VERSION }} | |
token: ${{ secrets.PAT }} | |
body: "Release is available on pub.dev repository. Run 'flutter pub get flutter_tpay'" |