mfgames-cil/.gitea/workflows/deploy.yaml
D. Moonfire 742c9da9b4
Some checks failed
deploy / deploy (push) Has been cancelled
build: removing uneeded tools
2024-03-10 13:22:44 -05:00

36 lines
1,006 B
YAML

name: deploy
on:
push:
branches:
- "main"
env:
# Need to generate this on the website with: user:read, organization:read,
# package:write, and repository:write.
MFGAMES_GITEA_TOKEN: ${{ secrets.MFGAMES_GITEA_TOKEN }}
jobs:
deploy:
runs-on: nix
container:
volumes:
- "/nix"
steps:
# Checkout the repository so we can load our flake.
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 100 # Should be deep enough to pick up version changes.
# Break apart downloading all the requirements into a separate step for timing purposes.
- run: nix develop --command echo prefetch flake
# Run the deployment.
- run: nix develop --command just build
- run: nix develop --command just test
- run: nix develop --command just release
# Clean up old packages because we aren't mounting the host's store.
- run: nix-collect-garbage --delete-older-than 15d