diff --git a/.github/workflows/prerelease-publish.yml b/.github/workflows/prerelease-publish.yml new file mode 100644 index 0000000..39e5929 --- /dev/null +++ b/.github/workflows/prerelease-publish.yml @@ -0,0 +1,38 @@ +name: Publish + +on: + push: + branches: + - v1.1 + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: | + 8 + 16 + 17 + + - name: Build with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: build + + - name: Publish to GitHub + uses: Apehum/mc-publish@v1.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + github-generate-changelog: true + github-prerelease: true + changelog-file: changelog.md diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 399f0d4..26aa4c0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,10 +18,11 @@ jobs: - 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 + distribution: temurin + java-version: | + 8 + 16 + 17 - name: Build with Gradle uses: gradle/gradle-build-action@v2 @@ -33,21 +34,29 @@ jobs: with: modrinth-id: ZI9h3Y7k modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + changelog-file: changelog.md loaders: | fabric forge paper spigot - velocity - bungeecord game-versions: | + 1.16.5 + 1.17.1 + 1.18.2 1.19.2 1.19.3 1.19.4 + 1.20 + 1.20.1 + 1.20.2 + 1.20.3 + 1.20.4 - name: Publish to GitHub uses: Apehum/mc-publish@v1.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} github-generate-changelog: false + changelog-file: changelog.md