Fix workflow yet again

This commit is contained in:
Gabriel Arazas 2022-05-18 19:03:27 +08:00
parent 5df64588a6
commit 24946272c3
2 changed files with 19 additions and 23 deletions

19
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: "Build demo"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- run: nix develop -c make build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: public

View File

@ -1,23 +0,0 @@
name: Build site
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
- name: Build website
run: |
chmod --recursive u+x ./bin/
nix develop -c make build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public