This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from Yukuro/feat/add-everyday-build
Added daily job
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters