Merge pull request #1 from goldfishlaser/main #3
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 w/ Asciidoctor & deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - deploy | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-18.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive # Fetch Hugo themes | |
| fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
| - name: Build | |
| run: make pdf && make html | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
| # or github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: ./public |