Skip to content

Commit

Permalink
Add publish.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Jun 27, 2022
1 parent 4136465 commit 43eb4dd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish release

on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Build and publish with Gradle
run: ./gradlew modrinth publish
env:
BUILD_RELEASE: ${{github.event.prelease == false}}
MODRINTH_TOKEN: ${{secrets.MODRINTH}}
CHANGELOG: ${{ github.event.release.body }}
- name: Upload build artifacts
uses: AButler/[email protected]
with:
files: 'build/libs/*;!build/libs/*-sources.jar;!build/libs/*-dev.jar'
repo-token: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 43eb4dd

Please sign in to comment.