-
Notifications
You must be signed in to change notification settings - Fork 131
47 lines (37 loc) · 1.02 KB
/
release.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
name: Release Workflow
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Maven
run: |
mvn -B package --file pom.xml
mkdir artifact
mv bundle/target/Adv*.jar artifact/
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: AdvancedBan
path: artifact
- name: Generate javadocs
run: mvn -B javadoc:javadoc --file pom.xml
- name: Deploy to GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: core/target/site/apidocs
env:
GITHUB_PAT: ${{ secrets.GITHUB_PAT }}
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}