diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 37 | ||||
| -rw-r--r-- | .github/workflows/gh-pages.yml | 32 |
2 files changed, 9 insertions, 60 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 2da8f8f..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Build - -on: - pull_request: - branches: - - master - - exampleSite - workflow_dispatch: - # manual run - inputs: - hugoVersion: - description: "Hugo Version" - required: false - default: "0.83.0" - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Git checkout - uses: actions/checkout@v2 - with: - ref: exampleSite - - - name: Get Theme - run: git submodule update --init --recursive - - - name: Update theme to Latest commit - run: git submodule update --remote --merge - - - name: Setup hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: "${{ github.event.inputs.hugoVersion }}" - - - name: Build - run: hugo --buildDrafts --gc --verbose --minify diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 75033f8..b181753 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,47 +1,33 @@ -name: Build GH-Pages +name: GitHub Pages on: push: paths-ignore: - - "images/**" - - "LICENSE" - "README.md" branches: - master - exampleSite - workflow_dispatch: - # manual run - inputs: - hugoVersion: - description: "Hugo Version" - required: false - default: "0.83.0" jobs: deploy: runs-on: ubuntu-latest steps: - - name: Git checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: - ref: exampleSite + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Get Theme - run: git submodule update --init --recursive - - - name: Update theme to Latest commit - run: git submodule update --remote --merge - - - name: Setup hugo + - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: "${{ github.event.inputs.hugoVersion }}" + hugo-version: '0.91.2' + # extended: true - name: Build - run: hugo --buildDrafts --gc --verbose --minify + run: hugo -D --verbose --minify - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public |
