Skip to content

Commit d2c493d

Browse files
chore: setting up automatic deployment of newly published github release
1 parent 4d379de commit d2c493d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Deploy new version to pub.dev after a new GitHub release has been published
2+
name: pub.dev auto deployment
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16+
- name: Checkout repo
17+
uses: actions/checkout@v2
18+
- name: Run a one-line script
19+
uses: k-paxian/[email protected]
20+
with:
21+
accessToken: ${{ secrets.PUB_ACCESS_TOKEN }}
22+
refreshToken: ${{ secrets.PUB_REFRESH_TOKEN}}

0 commit comments

Comments
 (0)