-
-
Notifications
You must be signed in to change notification settings - Fork 31
31 lines (28 loc) · 845 Bytes
/
publish.yaml
File metadata and controls
31 lines (28 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: BuildHugo
on:
workflow_dispatch:
push:
branches:
- master
jobs:
BuildHugo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
submodules: 'recursive'
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: |
mkdir -p bin
curl -L https://github.com/gohugoio/hugo/releases/download/v0.88.1/hugo_extended_0.88.1_Linux-64bit.tar.gz -o bin/hugo.tar.gz
tar xzvf bin/hugo.tar.gz -C bin
sudo mv bin/hugo /usr/local/bin
git checkout -b book-publish
make publish
git status
git config --global user.email 'LinuxSuRen@users.noreply.github.com'
git config --global user.name rick
git remote -v
git add . && git commit -m 'publish' && git push origin book-publish -f