noogle/.github/workflows/main.yml

21 lines
505 B
YAML
Raw Normal View History

2022-11-26 12:59:27 +03:00
name: "build"
on:
pull_request:
push:
jobs:
2022-11-26 13:05:50 +03:00
deploy:
2022-11-26 12:59:27 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix build
2022-11-26 13:05:50 +03:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result/static