Skip to content

Publish

Publish #1

Workflow file for this run

name: 'Publish'
on:
create:
branches:
- 'master'
jobs:
publish:
if: startsWith(github.repository, 'ModdingX/') # don't run in forks
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Setup Java'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: 'Build'
run: |
./gradlew \
-Pversion=${{ github.ref_name }} \
-PmoddingxUsername=${{ secrets.PUBLISH_USER }} \
-PmoddingxPassword=${{ secrets.PUBLISH_PASSWORD }} \
build javadoc publish
- name: 'Publish Javadoc'
uses: 'JamesIves/[email protected]'
with:
branch: gh-pages
folder: 'build/docs/javadoc'
clean: true
git-config-name: 'Github Actions'
git-config-email: '<>'