2023-01-04 21:17:54 +03:00
|
|
|
name: Deploy Landscape
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-31 01:49:55 +03:00
|
|
|
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 }}
|
2023-01-31 01:49:55 +03:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-02-01 00:38:59 +03:00
|
|
|
node-version: 16
|
2023-01-31 01:49:55 +03:00
|
|
|
- id: 'auth'
|
|
|
|
uses: 'google-github-actions/auth@v1'
|
|
|
|
with:
|
2023-02-01 23:09:24 +03:00
|
|
|
credentials_json: '${{ secrets.JANEWAY_SERVICE_KEY }}'
|
2023-01-31 01:49:55 +03:00
|
|
|
- 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]'
|
2023-02-02 01:55:22 +03:00
|
|
|
- id: deploy
|
2023-02-02 02:40:40 +03:00
|
|
|
name: Deploy
|
2023-01-31 21:36:54 +03:00
|
|
|
run:
|
2023-02-02 01:55:22 +03:00
|
|
|
./.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 }}
|
2023-03-21 20:56:50 +03:00
|
|
|
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}
|
|
|
|
URBIT_REPO_TAG: ${{ vars.URBIT_REPO_TAG }}
|