Skip to content

Commit

Permalink
ci: auto-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Feb 19, 2023
1 parent 72af00e commit 61bb63d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish

on:
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build

- name: Publish to Modrinth/CurseForge
uses: Apehum/mc-publish@v1.1
with:
name: 'PV Addon Broadcast'

# modrinth-unfeature-mode: 'none'
# modrinth-id: 1bZhdhsH
# modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

# curseforge-id: 394468
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

- name: Publish to GitHub
uses: Apehum/mc-publish@v1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-generate-changelog: false

0 comments on commit 61bb63d

Please sign in to comment.