Skip to content

Commit

Permalink
add pub publish on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
alann-maulana committed Apr 26, 2021
1 parent 9ef053e commit 2d2b8f3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pub-publish-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pub Publish
name: Pub Publish Test

on:
push:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/pub-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pub Publish

on:
push:
tags:
- '*'

jobs:
build:
name: Publishing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.22.4'
channel: 'stable'
- run: echo "FLUTTER_ROOT=$FLUTTER_HOME" >> $GITHUB_ENV && echo $FLUTTER_ROOT
- run: bash scripts/credentials.sh
- run: rm -rf scripts/
- run: make
- run: make deps
- run: pub global activate dartdoc
- run: make docs
- run: pub publish -v

0 comments on commit 2d2b8f3

Please sign in to comment.