Skip to content

Merge pull request #27 from z-shell/dependabot/github_actions/peaceir… #67

Merge pull request #27 from z-shell/dependabot/github_actions/peaceir…

Merge pull request #27 from z-shell/dependabot/github_actions/peaceir… #67

Workflow file for this run

---
name: "🚀 Deploy Call"
on:
push:
branches: [main]
tags: ["v*.*.*"]
workflow_dispatch: {}
env:
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
environment: production
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Hugo setup
uses: peaceiris/[email protected]
with:
hugo-version: latest
extended: true
- uses: actions/cache@v4
with:
path: /tmp/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- run: hugo --minify
- uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public