Some rendering mappings (#476) #583
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
name: Publish | |
on: [push] | |
jobs: | |
publish: | |
if: ${{ github.repository_owner == 'QuiltMC' }} | |
runs-on: ubuntu-latest | |
container: | |
image: eclipse-temurin:17 | |
options: --user root | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/wrapper-validation-action@v1 | |
# Ensure that releases are not ran in parallel, this ensures that the latest commit is the latest release | |
# See https://github.com/softprops/turnstyle | |
- name: Turnstyle | |
uses: softprops/turnstyle@v1 | |
with: | |
continue-after-seconds: 3600 | |
same-branch-only: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default. | |
- name: Generate build number | |
id: buildnumber | |
uses: onyxmueller/build-tag-number@v1 | |
with: | |
token: ${{ secrets.github_token }} | |
prefix: "build/${{ github.ref }}" | |
- run: ./gradlew build javadoc javadocJar publish --stacktrace | |
env: | |
MAVEN_URL: ${{ secrets.MAVEN_URL }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
SNAPSHOTS_URL: ${{ secrets.SNAPSHOTS_URL }} | |
SNAPSHOTS_USERNAME: ${{ secrets.SNAPSHOTS_USERNAME }} | |
SNAPSHOTS_PASSWORD: ${{ secrets.SNAPSHOTS_PASSWORD }} | |
BRANCH_NAME: ${{ github.ref }} | |
- name: Publish javadoc to javadoc.quiltmc.org | |
uses: shallwefootball/[email protected] | |
with: | |
aws_key_id: ${{ secrets.JAVADOC_USERNAME }} | |
aws_secret_access_key: ${{ secrets.JAVADOC_PASSWORD }} | |
aws_bucket: ${{ secrets.JAVADOC_BUCKET }} | |
endpoint: ${{ secrets.JAVADOC_URL }} | |
source_dir: ./build/docs/ | |
destination_dir: "quilt-mappings" | |
# Javadoc publishing | |
- name: Update Quilt Meta | |
uses: quiltmc/update-quilt-meta@main | |
with: | |
b2-key-id: ${{ secrets.META_B2_KEY_ID }} | |
b2-key: ${{ secrets.META_B2_KEY }} | |
cf-key: ${{ secrets.META_CF_KEY }} |