landscape/.github/workflows/deploy.yml

46 lines
1.4 KiB
YAML
Raw Normal View History

2023-01-04 21:17:54 +03:00
name: Deploy Landscape
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
deploy:
runs-on: ubuntu-latest
name: "Create a glob and deploy latest to ~wannec-dozzod-marzod (devstream)"
2023-01-04 21:17:54 +03:00
steps:
- uses: actions/checkout@v3
2023-01-31 19:47:11 +03:00
with:
token: ${{ secrets.REPO_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 16
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
2023-02-01 23:09:24 +03:00
credentials_json: '${{ secrets.JANEWAY_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
2023-02-02 02:46:02 +03:00
- name: Build Frontend
working-directory: ./ui
run: |
npm ci
npm run build
- id: glob
uses: ./.github/actions/glob
with:
folder: 'ui/dist/*'
docket: 'desk/desk.docket-0'
- name: Commit Glob
uses: EndBug/add-and-commit@v9
with:
add: '-A'
message: 'update glob: ${{ steps.glob.outputs.hash }} [skip actions]'
- id: deploy
2023-02-02 02:40:40 +03:00
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/landscape garden wannec-dozzod-marzod us-west1-b
env:
2023-02-02 02:01:45 +03:00
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}
URBIT_REPO_TAG: ${{ vars.URBIT_REPO_TAG }}