From a2d82472a47ae0d7f826efed5d4c83a8222ab70b Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Fri, 9 Jun 2023 13:05:40 -0400 Subject: [PATCH] Add automated, ephemeral release workflow [skip ci] --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..5e145a52 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: release-artifacts + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build and publish mod to CurseForge & Modrinth + run: ./gradlew forge:publishToModSites fabric:publishToModSites + env: + CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + - name: Upload assets to GitHub + uses: AButler/upload-release-assets@v2.0 + with: + files: 'bin/*' + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file