Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setting up automatic deployment of newly published github release
- Loading branch information
1 parent
4d379de
commit d2c493d
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Deploy new version to pub.dev after a new GitHub release has been published | ||
name: pub.dev auto deployment | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Run a one-line script | ||
uses: k-paxian/dart-package-publisher@v1.2 | ||
with: | ||
accessToken: ${{ secrets.PUB_ACCESS_TOKEN }} | ||
refreshToken: ${{ secrets.PUB_REFRESH_TOKEN}} |