Update README.md #115
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
on: [push] | |
jobs: | |
nikola_build: | |
runs-on: ubuntu-latest | |
name: 'Deploy Nikola to GitHub Pages' | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
with: | |
set-safe-directory: '/home/runner/work/hnm-nikola/hnm-nikola' | |
- name: Prepare a docker home for nicola with a git safe.directory that actually works | |
run: | | |
set -x +e | |
# with: set-safe-directory above is nicely documented, but it does nothing. Hack and make it work manually. | |
mkdir -p /home/runner/work/_temp/_github_home | |
env HOME=/home/runner/work/_temp/_github_home git config --global --add safe.directory /github/workspace | |
cat /home/runner/work/_temp/_github_home/.gitconfig | |
- name: Build and Deploy Nikola | |
uses: getnikola/nikola-action@v3 | |
with: | |
dry_run: false | |