biocircuits/.github/workflows/deploy.yml
Aleks Rūtiņš 77190c21f0 Use Cachix
2024-06-01 11:54:11 -04:00

39 lines
No EOL
858 B
YAML

name: Deploy site to Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: $!
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@v9
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v15
with:
name: aleksrutins
- uses: actions/configure-pages@v2
- name: Build Site
run: 'nix build .'
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './result'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1