Auto-Deploy to pub.dev #158
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
name: Auto-Deploy to pub.dev | |
on: | |
workflow_run: | |
workflows: ["Build and test"] | |
types: | |
- completed | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: packages/approval_tests | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PUB_SPEC_ID }} | |
- name: ⬆️ Auto-Deploy to pub.dev | |
run: | | |
./bash/push_release.sh | |
shell: bash |