From 74f15f1a679beab9f9c436db722c2a22d3e93d5a Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Sun, 26 Jan 2025 19:43:47 +0100 Subject: [PATCH] new build --- .github/workflows/static.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index f2c9e97..bb66430 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -23,14 +23,17 @@ concurrency: jobs: # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + - uses: nixbuild/nix-quick-install-action@v29 + - name: nix build + run: nix build . + - name: Adjust permissions + run: | + chown -R `id -u`:`id -g` ./result + chmod -R a+rwx ./result - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact @@ -38,6 +41,13 @@ jobs: with: # Upload entire repository path: '.' + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4