mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-12 16:47:24 +01:00
Set up go beforehand
This commit is contained in:
parent
0641a86e5f
commit
42874fd991
1 changed files with 4 additions and 0 deletions
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
|
@ -29,6 +29,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: 0.111.3
|
HUGO_VERSION: 0.111.3
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.21.1'
|
||||||
- name: Install Hugo CLI
|
- name: Install Hugo CLI
|
||||||
run: |
|
run: |
|
||||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||||
|
@ -61,6 +64,7 @@ jobs:
|
||||||
- name: Syndicate
|
- name: Syndicate
|
||||||
run: |
|
run: |
|
||||||
cd tools/syndicate
|
cd tools/syndicate
|
||||||
|
go mod download
|
||||||
go run .
|
go run .
|
||||||
if git diff-index --quiet HEAD; then
|
if git diff-index --quiet HEAD; then
|
||||||
echo "No syndication changes made"
|
echo "No syndication changes made"
|
||||||
|
|
Loading…
Reference in a new issue