Merge pull request #552 from xpdota/timeline-auto-update #1978
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow builds the project, and publishes it to github-pages, under a per-branch directory. | |
# e.g. master branch builds to https://xpdota.github.io/event-trigger/master/ | |
# This version runs on a self-hosted runner that has everything preinstalled for faster runs. | |
name: Publish | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: self-hosted | |
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: Build with Maven | |
run: xvfb-run mvn -T3 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/[email protected] | |
with: | |
folder: ./launcher/target/windows/publish_data | |
branch: gh-pages | |
target-folder: ${{ github.ref_name }} | |
# TODO: artifacts | |
# TODO: saint coinach auto-update of data |