-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (34 loc) · 1023 Bytes
/
deploy_beta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Fly Deploy - beta
on:
workflow_dispatch: {}
push:
branches:
- beta
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: vars
name: Compute short SHA for SENTRY_RELEASE
run: echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Build static assets
run: |
npm clean-install
npm run build
- name: Checkout repository with archived sites of previous years
uses: actions/checkout@v3
with:
repository: pyvec/cz.pycon.org-archive
path: _previous-years
- uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 0.1.84
- run: flyctl deploy --remote-only --build-arg SENTRY_RELEASE=${{ steps.vars.outputs.sha_short }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}