Skip to content

Update actions/upload-artifact digest to 552bf37 #169

Update actions/upload-artifact digest to 552bf37

Update actions/upload-artifact digest to 552bf37 #169

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
paths-ignore:
- '.gitignore'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- 'licenseheader.txt'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9
- name: Change wrapper permissions
run: chmod +x ./gradlew
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
- uses: actions/setup-java@4075bfc1b51bf22876335ae1cd589602d60d8758
with:
distribution: 'temurin'
java-version: 21
- name: Publish to Modrinth (Fabric)
if: ${{ success() && github.repository == 'onebeastchris/Hurricane-Modded' && github.ref_name == '1.21' }}
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./gradlew fabric:modrinth
- name: Publish to Modrinth (NeoForge)
if: ${{ success() && github.repository == 'onebeastchris/Hurricane-Modded' && github.ref_name == '1.21' }}
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./gradlew neoforge:modrinth
- name: Archive Artifacts (fabric)
uses: actions/upload-artifact@552bf3722c16e81001aea7db72d8cedf64eb5f68
if: success()
with:
name: Hurricane Fabric
path: fabric/build/libs/hurricane-fabric-*.jar
if-no-files-found: error
- name: Archive Artifacts (neoforge)
uses: actions/upload-artifact@552bf3722c16e81001aea7db72d8cedf64eb5f68
if: success()
with:
name: Hurricane NeoForge
path: neoforge/build/libs/hurricane-neoforge-*.jar
if-no-files-found: error