-
Notifications
You must be signed in to change notification settings - Fork 38
37 lines (35 loc) · 989 Bytes
/
asf-site.yml
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
32
33
34
35
36
37
name: Deploy ASF site
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 0.136.4
extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: asf-site
publish_dir: content
destination_dir: content
force_orphan: true
- run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git fetch --all
git checkout asf-site
echo 'publish:' >> .asf.yaml
echo ' whoami: asf-site' >> .asf.yaml
git add .asf.yaml
git commit -m '.asf.yaml'
git push origin asf-site