Skip to content

PWA (#13)

PWA (#13) #17

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
- feat/pwa
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Install
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
experimental-features = nix-command flakes
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: nix develop -c trunk build --release
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/pwa'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist