fix: update json schema input (#965) #105
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
# SPDX-FileCopyrightText: 2024 The Forkbomb Company | |
# | |
# SPDX-License-Identifier: AGPL-3.0-or-later | |
name: 🦼 Staging deployment | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # for checkout@v4 | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.14.0 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.1.4 | |
- run: make build | |
env: | |
PUBLIC_POCKETBASE_URL: "https://staging.admin.didroom.com/" | |
- name: Configure 🔒🐚 | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$SSH_SKEY" > ~/.ssh/staging.key | |
chmod 600 ~/.ssh/staging.key | |
cat >>~/.ssh/config <<END | |
Host remote | |
HostName $SSH_HOST | |
User $SSH_USER | |
IdentityFile ~/.ssh/staging.key | |
IdentitiesOnly yes | |
StrictHostKeyChecking no | |
Port $SSH_PORT | |
END | |
env: | |
SSH_USER: ${{ secrets.GA_DEPLOY_USER }} | |
SSH_SKEY: ${{ secrets.GA_DEPLOY_SK }} | |
SSH_HOST: ${{ secrets.GA_DEPLOY_HOST }} | |
SSH_PORT: ${{ secrets.GA_DEPLOY_PORT }} | |
- run: | | |
tar czf staging.tar.gz \ | |
.bin/zenroom \ | |
.bin/zencode-exec \ | |
admin/pb \ | |
admin/pb_migrations \ | |
admin/pb_hooks \ | |
admin/pb_public/emails \ | |
admin/hooks \ | |
webapp/build \ | |
webapp/package.json \ | |
webapp/node_modules | |
scp staging.tar.gz remote:staging/ | |
- run: | | |
ssh remote 'staging/DEPLOY.sh' |