CI #1003
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: "CI" | |
on: | |
push: | |
branches: | |
- main | |
- trying | |
- staging | |
schedule: | |
- cron: "0 0 * * SAT" # every sunday | |
jobs: | |
nix-tests: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: nixbuild/nix-quick-install-action@v25 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
# CI workflows | |
- name: Run Nix Flake Show | |
run: nix flake show | |
- name: Run nvfetcher-github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
nix develop -c nvfetcher-pkgs | |
- name: Commit changes | |
if: ${{ env.COMMIT_MSG != null }} | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ${{ env.COMMIT_MSG }} | |
- name: Build Packages | |
run: nix -Lv develop .#mkdoc -c mkdoc | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: ./docs/publish/public |