Skip to content

Commit

Permalink
Add automated, ephemeral release workflow [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jun 9, 2023
1 parent 57e1e54 commit a2d8247
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit a2d8247

Please sign in to comment.