diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6b992ecf..e17bb2df 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/config.sh b/config.sh old mode 100644 new mode 100755