Skip to content

Commit

Permalink
chore: setting up automatic deployment of newly published github release
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkOSullivan94 committed Jul 20, 2022
1 parent 4d379de commit d2c493d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cd-pub-deploy-published-release.yml
@@ -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}}

0 comments on commit d2c493d

Please sign in to comment.