Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sempruijs committed Jan 2, 2024
1 parent fc2e82b commit 2fe7bf2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: deploy-site
on:
push:
branches: [ "main" ]

jobs:
build-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cd ${{ github.workspace }}
- uses: cachix/install-nix-action@v18
- run: nix build .#site -L && cp --recursive --dereference --no-preserve=mode,ownership result public
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: './public'

deploy:
needs: build-website

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 2fe7bf2

Please sign in to comment.