Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #60 from Yukuro/feat/add-everyday-build
Browse files Browse the repository at this point in the history
Added daily job
  • Loading branch information
Yukuro authored Feb 3, 2024
2 parents 98acb2b + d6ba2d7 commit e7c8301
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/only-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: only-build
on:
workflow_dispatch:
branches:
- master
schedule:
- cron: '0 3 * * *'

jobs:
build-hugo:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true

- name: Setup Go
uses: actions/[email protected]
with:
go-version: '^1.21'

- name: SetUp Env
run: hugo new site testenv

- name: Set theme
uses: actions/checkout@v3
with:
path: ./testenv/themes/hugo-theme-shell

- name: Build
run: hugo --minify -t hugo-theme-shell
working-directory: ./testenv
2 changes: 1 addition & 1 deletion .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Pages
name: preview
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Pages
name: production
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
Expand Down

0 comments on commit e7c8301

Please sign in to comment.