diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cd.yml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1a209cf..a7a15a3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -26,18 +26,16 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Setup hugo + - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: "${{ github.event.inputs.hugoVersion }}" - - name: Build - run: | - hugo --source=exampleSite --buildDrafts --gc --verbose --minify - cp -R ./exampleSite/public ./docs + - name: Build local ./exampleSite + run: hugo --minify --gc --buildDrafts --verbose --destination ../public --source ./exampleSite --baseURL https://sergeyklay.github.io/gohugo-theme-ed/ - - name: Deploy + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs + publish_dir: ./public |
