Skip to content

Commit

Permalink
Update to do stuff on release publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkfish authored May 31, 2020
1 parent 5b54a52 commit d428753
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,34 @@ name: Publish

on:
release:
released
types: [published]

jobs:
test:
runs-on: ubuntu-latest
name: Publish to pub.dev
steps:
- uses: actions/checkout@v1
- uses: mikefarah/[email protected]
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.17.1'
channel: 'stable'
- run: yq w -i pubspec.yaml 'version' '{{GITHUB_REF}}'
- name: Commit changes
- run: dart --version
- run: flutter --version
- run: flutter pub get
- run: flutter test
- run: flutter pub publish
- uses: EndBug/add-and-commit@v4
with:
author_name: David Bennett
author_email: [email protected]
message: "Update version to {{ GITHUB_REF }}"
add: "*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d428753

Please sign in to comment.