-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.31 KB
/
build.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
38
39
40
41
42
43
44
45
46
47
48
name: Build and Deploy
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
- name: Build artifact and site
run: |
if [ -e "bee" ]; then
source bee install doc:site maven:pom ci:readme ci:license
else
version=$(curl -SsL https://git.io/stable-bee)
curl -SsL -o bee-${version}.jar https://jitpack.io/com/github/teletha/bee/${version}/bee-${version}.jar
java -javaagent:bee-${version}.jar -cp bee-${version}.jar bee.Bee install doc:site maven:pom ci:readme ci:license
fi
- name: Deploy site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target/site
- name: Request Releasing
uses: GoogleCloudPlatform/release-please-action@v4
with:
release-type: simple
package-name: viewtify
- name: Auto commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: update repository info