Merge pull request #64 from pyvec/schedule-json #271
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
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 }} |