summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cd.yml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-29 23:02:26 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-29 23:02:26 +0200
commit9cdc43869601b119444b59b0bc098c473b5999e9 (patch)
treed3490cee51284db0a9b13f5784a66316be15e742 /.github/workflows/cd.yml
parentc5701fdf9dc78175dede099d4ba1ccd38a817922 (diff)
downloadgohugo-theme-ed-9cdc43869601b119444b59b0bc098c473b5999e9.tar.gz
Improve Build & Deploy
Diffstat (limited to '.github/workflows/cd.yml')
-rw-r--r--.github/workflows/cd.yml12
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