Add oneline logo #117
This file contains 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 and deploy site | |
on: | |
push: | |
branches: | |
- gh-pages-source | |
schedule: | |
- cron: '0 3 1 * *' # monthly | |
workflow_dispatch: | |
inputs: | |
source_branch: | |
description: 'Source branch' | |
required: true | |
jobs: | |
build: | |
name: Build generator and compile site | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Install Nix ❄️ | |
uses: cachix/install-nix-action@v20 | |
- name: Install and setup Cachix 💽 | |
uses: cachix/cachix-action@v12 | |
with: | |
name: munihac-website | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: Build Generator and Site 👷 | |
run: | | |
nix-build | |
cp -RL result result-with-changed-permissions | |
chmod -R +w result-with-changed-permissions/ | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: master | |
FOLDER: result-with-changed-permissions |