new build

This commit is contained in:
Daniel Winkler 2025-01-26 19:43:47 +01:00
commit 74f15f1a67

View file

@ -23,14 +23,17 @@ concurrency:
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
deploy: build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - name: Setup Pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Upload artifact - name: Upload artifact
@ -38,6 +41,13 @@ jobs:
with: with:
# Upload entire repository # Upload entire repository
path: '.' path: '.'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4