mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
* Setup PR publishing also remove the JDK matrix, it's pointless with one value and other parts of the workflow depend on a single value... * Use PaperMC action * Change base PR maven url * Update action * Update action * Update action * Update action * Update action * Re-enable javadoc...? * Delete PR comment workflow * Rename publish tag * comment broken jd link * update bot name
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: Publish PR
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [ "Build Paper" ]
|
|
types:
|
|
- completed
|
|
|
|
permissions:
|
|
packages: write # To upload the PR
|
|
actions: write # To get information about the uploading workflow run and to delete the run artifacts
|
|
contents: write # To download the `maven-publish` artifact, and to be able to create commit comments
|
|
issues: write # To be able to create PR comments
|
|
pull-requests: write # To be able to create PR comments
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate an Application repository access token
|
|
id: gen_repo_token
|
|
uses: kattecon/gh-app-access-token-gen@v1
|
|
with:
|
|
app_id: 1408328
|
|
private_key: ${{ secrets.PR_PUBLISHING_GH_APP_KEY }}
|
|
repository: ${{ github.repository }}
|
|
- name: Publish PR
|
|
uses: PaperMC/action-pr-publishing@paper
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.gen_repo_token.outputs.token }}
|
|
with:
|
|
publishing-token: ${{ github.token }}
|
|
uploader-workflow-name: Build Paper
|
|
artifacts-base-path: io/papermc/paper
|
|
base-maven-url: 'https://maven-prs.papermc.io'
|
|
self-name: 'papermc-pr-publishing[bot]'
|