Skip to content

Fix CI

Fix CI #121

Workflow file for this run

name: "Build"
on:
pull_request:
branches: ["**"]
push:
branches: ["**"]
tags: ["**"]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with:
name: kubukoz
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build (main)
if: github.ref == 'refs/heads/main'
run: ./build.sh && cp -Lr ./result public
- uses: JamesIves/github-pages-deploy-action@v4
name: Deploy (main)
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: ./public
- name: Build (preview)
if: github.event_name == 'pull_request'
run: ./build.sh 'preview' && cp -Lr ./result public-preview
- uses: JamesIves/github-pages-deploy-action@v4
name: Deploy (preview)
if: github.event_name == 'pull_request'
with:
branch: gh-pages
target-folder: ./preview/
folder: ./public-preview