Skip to content

Commit

Permalink
Update Github Action scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsayleung committed Feb 22, 2022
1 parent 7442f9d commit be6f96e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,20 @@ jobs:
hugo-version: 'latest'
# extended: true

- name: Generate Configuration
env:
GITALK_CLIENT_ID_PLACEHOLDER: ${{ secrets.GITALK_CLIENT_ID_PLACEHOLDER }}
GITALK_CLIENT_SECRET_PLACEHOLDER: ${{ secrets.GITALK_CLIENT_SECRET_PLACEHOLDER }}
shell: bash
run: |
"${GITHUB_WORKSPACE}/config.sh"
- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
Empty file modified config.sh
100644 → 100755
Empty file.

0 comments on commit be6f96e

Please sign in to comment.