-
Notifications
You must be signed in to change notification settings - Fork 33
61 lines (50 loc) · 1.48 KB
/
publish_notselfhosted.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
49
50
51
52
53
54
55
56
57
58
59
60
61
# Same as publish.yml, but runs on the gh-hosted runner.
name: Publish on gh-hosted runner
on:
workflow_dispatch:
# push:
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.4.0
with:
java-version: 17
- name: Build with Maven
uses: gabrielbb/xvfb-action@v1
with:
run: mvn -T4 clean install
- name: Copy release files
run: |
pushd launcher/target/windows/
mkdir -p publish_data/v2
md5sum *.exe *.dll deps/*.jar > publish_data/v2/manifest
cp -r *.exe *.dll deps/ publish_data/v2/
# Legacy updater
cd deps
md5sum *.jar > ../publish_data/manifest
cp *.jar ../publish_data/
popd
- name: Docs with Maven
run: mvn site
- name: Copy docs
run: |
mv target/site/apidocs ./launcher/target/windows/publish_data/javadoc
- name: Deploy release files
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
folder: ./launcher/target/windows/publish_data
branch: gh-pages
target-folder: ${{ github.ref_name }}
# TODO: artifacts
# TODO: saint coinach auto-update of data