Deploy JasprPad #5
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
on: | |
workflow_dispatch: | |
name: Deploy JasprPad | |
jobs: | |
release: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.PUSH_TOKEN }} | |
- uses: dart-lang/[email protected] | |
- name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v1 | |
with: | |
credentials_json: ${{ secrets.PUB_PUBLISH_KEY }} | |
- name: Write ServiceAccountKey File | |
run: 'echo "$SERVICE_ACCOUNT_KEY" > apps/jaspr_pad/serviceAccountKey.json' | |
shell: bash | |
env: | |
SERVICE_ACCOUNT_KEY: ${{secrets.JASPRPAD_SERVICE_ACCOUNT }} | |
- name: Deploy | |
run: | | |
dart pub global activate melos | |
dart pub global activate jaspr_cli | |
gcloud auth configure-docker | |
melos deploy:jasprpad | |