ci: update azure pipeline (#36) #10
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: Deploy Demo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
# Avoid running deploy on internal forks (e.g. e2e) | |
if: github.repository == 'widgetbook/groceries-demo' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Bootstrap | |
uses: ./.github/actions/bootstrap | |
- name: Authenticate Service Account | |
uses: google-github-actions/[email protected] | |
with: | |
credentials_json: ${{ secrets.STORAGE_SERVICE_ACCOUNT }} | |
- name: Deploy to demo.widgetbook.io | |
uses: google-github-actions/[email protected] | |
with: | |
path: widgetbook/build/web | |
destination: demo.widgetbook.io | |
parent: false |