Add newline above my blog link #15
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 site | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
paths: | |
- "readingList.csv" | |
- "generator.go" | |
concurrency: # Prevent two instances of this running at once | |
group: deploy-to-ghpages | |
cancel-in-progress: true | |
jobs: | |
build-site: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Run generator | |
run: go run github.com/manuelmazzuola/readingList generateSite | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
env: | |
PUBLISH_DIR: .site | |
PUBLISH_BRANCH: gh-pages | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |