mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-11 09:42:51 +03:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
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)"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.REPO_TOKEN }}
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- id: 'auth'
|
|
uses: 'google-github-actions/auth@v1'
|
|
with:
|
|
credentials_json: '${{ secrets.JANEWAY_SERVICE_KEY }}'
|
|
- name: 'Set up Cloud SDK'
|
|
uses: 'google-github-actions/setup-gcloud@v1'
|
|
- 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
|
|
name: Deploy
|
|
run:
|
|
./.github/helpers/deploy.sh tloncorp/landscape garden wannec-dozzod-marzod us-west1-b
|
|
env:
|
|
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
|
|
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }} |