Skip to content

Merge pull request #57 from z-shell/dependabot/github_actions/actions… #89

Merge pull request #57 from z-shell/dependabot/github_actions/actions…

Merge pull request #57 from z-shell/dependabot/github_actions/actions… #89

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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v5
with:
submodules: true
fetch-depth: 0
- name: Hugo setup
uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3.2.1
with:
hugo-version: latest
extended: true
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # 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@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public