Skip to content

workshop requirements RC1 #257

workshop requirements RC1

workshop requirements RC1 #257

Workflow file for this run

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 }}