Skip to content

Commit

Permalink
Add workflow for publishing mod
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-nsley69 authored Dec 4, 2022
1 parent f4cb698 commit bf29160
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
push:
# Pattern matched against refs/tags
tags:
- '**' # Push events to every tag including hierarchical tags like v1.0/beta

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Environment Variables
run: env

- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 17

- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew

- name: Build
run: ./gradlew clean build

- name: Publish
uses: Kir-Antipov/mc-publish@v3.2
with:
github-generate-changelog: true
github-token: ${{ secrets.GITHUB_TOKEN }}
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
files-secondary: build/libs/(*-@(dev|sources|javadoc)).jar

loaders: |
fabric
quilt
java: 17

0 comments on commit bf29160

Please sign in to comment.