Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpgr committed Feb 11, 2024
1 parent 3cdb5d2 commit a31bac8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: publish
on: [ workflow_dispatch ]

jobs:
release:
strategy:
matrix:
java: [
17,
21
]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build github modrinth --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GH_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
21 changes: 0 additions & 21 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit a31bac8

Please sign in to comment.