Skip to content

Commit

Permalink
Github: Add deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomputable committed Dec 19, 2023
1 parent baa4feb commit c86487e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build website
run: |
nix develop .#deploy
trunk serve --release
- name: Fix links
run: sh fix-links.sh

- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deployment branch.

0 comments on commit c86487e

Please sign in to comment.