๐ŸŒ My personal website, written in Haskell and Sass skiletro.com
personal-website website portfolio haskell ssg
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add gh actions

+54
+54
.github/workflows/publish.yml
··· 1 + name: Deploy Hakyll website to GitHub Pages using Nix 2 + 3 + on: 4 + push: 5 + workflow_dispatch: 6 + 7 + permissions: 8 + contents: read 9 + pages: write 10 + id-token: write 11 + 12 + concurrency: 13 + group: "pages" 14 + cancel-in-progress: true 15 + 16 + jobs: 17 + build: 18 + runs-on: ubuntu-latest 19 + steps: 20 + - name: Install Act Dependencies 21 + if: ${{ env.ACT }} 22 + run: | 23 + apt-get update && apt-get install sudo -y 24 + 25 + - name: Checkout 26 + uses: actions/checkout@v4 27 + 28 + - name: Install Nix 29 + uses: cachix/install-nix-action@v31 30 + with: 31 + github_access_token: ${{ secrets.GITHUB_TOKEN }} 32 + 33 + - name: Build Site using Hakyll 34 + run: nix run .# build 35 + 36 + - name: Setup Pages 37 + id: pages 38 + uses: actions/configure-pages@v5 39 + 40 + - name: Upload Artifact 41 + uses: actions/upload-pages-artifact@v3 42 + with: 43 + path: ./_site 44 + 45 + deploy: 46 + environment: 47 + name: github-pages 48 + url: ${{ steps.deployment.outputs.page_url }} 49 + runs-on: ubuntu-latest 50 + needs: build 51 + steps: 52 + - name: Deploy to GitHub Pages 53 + id: deployment 54 + uses: actions/deploy-pages@v4