-
Notifications
You must be signed in to change notification settings - Fork 137
36 lines (34 loc) · 932 Bytes
/
stage.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
name: Stage
on:
push:
branches:
- main
schedule:
- cron: '0 * * * *'
jobs:
build:
runs-on: ubuntu-latest
env:
PAT: ${{ secrets.PAT }}
QINIU_BUCKET: ${{ secrets.QINIU_BUCKET }}
QINIU_AK: ${{ secrets.QINIU_AK }}
QINIU_SK: ${{ secrets.QINIU_SK }}
RHYTHEM_TOKEN: ${{ secrets.RHYTHEM_TOKEN }}
steps:
- name: Check out repo
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
- name: Go staging
run: go run ./actions/stage
- name: Commit and push
run: |-
git config --global user.email "[email protected]" && git config --global user.name "Bot"
git diff
git add . && git commit -m ":bookmark: Staging" || exit 0
git push
- name: Index bazaar
run: go run ./actions/index
- name: Go hashing
run: go run ./actions/hash