Add GitHub Actions workflow #1
Workflow file for this run
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: Deploy Pushup website to Fly.io | |
on: | |
push: | |
branches: [ "website" ] | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
jobs: | |
deploy: | |
name: Deploy app | |
runs-on: ubuntu-latest | |
environment: pushup-website | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- uses: cachix/install-nix-action@v24 | |
- name: Build the Pushup site | |
run: nix run github:adhocteam/pushup build | |
- run: flyctl deploy --remote-only |