Compare commits

...

9 Commits

Author SHA1 Message Date
3c4d9460fc removed container 2023-08-18 19:32:12 +02:00
542f8a61bc added install-nix 2023-08-18 19:29:37 +02:00
826cf0b36c allowed insecure node to be installed 2023-08-18 19:20:52 +02:00
04b86982b4 added nix channel 2023-08-18 19:18:40 +02:00
bed207e627 added node dependency 2023-08-18 19:14:30 +02:00
09726bf3e9 pls fix 2023-08-18 19:04:40 +02:00
333f4e87a8 fixed image 2023-08-18 18:58:15 +02:00
d47d3a3f34 updated workflow 2023-08-18 18:56:57 +02:00
bf3ee85df5 For deployment with GitHub 2023-08-18 18:38:49 +02:00

64
.github/workflows/hugo.yaml vendored Normal file
View File

@ -0,0 +1,64 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Nix
run: "nix build"
- name: Copy public folder
run: "cp -r result/. public/"
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public
# Deployment job
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@v2