-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (33 loc) · 896 Bytes
/
main.yml
File metadata and controls
38 lines (33 loc) · 896 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
32
33
34
35
36
37
38
name: CI
on:
push:
branches: [ main ]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v6
- name: Generate olympusnews/index.txt
run: |
pushd olympusnews
rm -f index.txt
for f in *; do
echo $f >> index.txt
done
popd
- name: git <setup> && git add && git commit
run: |
git config user.name '0x0ade'\''s bot'
git config user.email 'nuda1998+ghbot@gmail.com'
git branch -d gh-pages || true
git checkout -b gh-pages
git add .
git commit -m 'Automatically update gh-pages'
- name: git push
uses: ad-m/github-push-action@v1.0.0
with:
github_token: ${{ secrets.PUSH_TOKEN }}
branch: gh-pages
force: true