Skip to content

feat: Pin actions to hashes TDE-934 #389

feat: Pin actions to hashes TDE-934

feat: Pin actions to hashes TDE-934 #389

Workflow file for this run

name: Deploy Jekyll with GitHub Pages dependencies preinstalled
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
- name: Setup Pages
uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # [email protected]
- uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # pin@v23
- uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # pin@v12
with:
name: linz
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build with Jekyll
run: nix-shell --pure --run 'github-pages build --verbose'
- name: Upload artifact
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # [email protected]
deploy:
if:
github.repository == 'linz/emergency-management-tools' && github.ref ==
'refs/heads/master'
concurrency:
group: "pages"
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # [email protected]