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

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukuro committed Feb 3, 2024
1 parent 98acb2b commit 927d9f4
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
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
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 927d9f4

Please sign in to comment.