Build Website #566
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Website | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '23 7 * * *' | |
env: | |
NPM_CONFIG_FUND: false | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: zola@0.19.1 | |
- run: sudo apt-get install dos2unix | |
- run: wget https://github.com/bash/seite/releases/download/0.1.3/x86_64-unknown-linux-musl.tar.gz | |
- run: tar -xvf x86_64-unknown-linux-musl.tar.gz | |
- run: sudo mv seite /usr/local/bin/seite | |
- run: rm x86_64-unknown-linux-musl.tar.gz | |
- name: Build Site | |
run: make publish | |
- name: Upload GitHub Pages Artifact | |
uses: actions/upload-pages-artifact@v3 | |
deploy_pages: | |
needs: build | |
if: github.ref_name == 'main' | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |