Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spideythewebhead committed May 22, 2023
1 parent 2eae492 commit eb97a0c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Workflow

on:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.1"
channel: "stable"
- run: flutter pub get
- run: dart format --output none --set-exit-if-changed -l 80 lib
- run: dart analyze --fatal-infos --fatal-warnings lib
- run: flutter test
- name: Release
run: |
dart pub publish --dry-run
mkdir -p ~/.config/dart
echo "${{ secrets.PUBDEV_TOKEN }}" | base64 --decode >> ~/.config/dart/pub-credentials.json
dart pub publish --force

0 comments on commit eb97a0c

Please sign in to comment.