Skip to content

Commit

Permalink
move gradle to kts
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Jun 3, 2023
1 parent 379255c commit cb9401a
Show file tree
Hide file tree
Showing 9 changed files with 324 additions and 285 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 20
permissions:
contents: read
contents: write
packages: write
steps:
- uses: actions/checkout@v3
Expand All @@ -24,8 +24,8 @@ jobs:
- name: Update mod version
uses: christian-draeger/[email protected]
with:
path: 'gradle.properties'
property: 'mod_version'
path: "gradle.properties"
property: "mod_version"
value: ${{ github.event.release.tag_name }}

- name: Build and upload
Expand All @@ -37,14 +37,11 @@ jobs:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
CI: true

- name: Upload to github releases
if: ${{ github.event_name == 'release' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/libs/sliceanddice-fabric-${{ github.event.release.tag_name }}.jar
asset_name: sliceanddice-fabric-${{ github.event.release.tag_name }}.jar
asset_content_type: application/java-archive
file: build/libs/sliceanddice-fabric-${{ github.event.release.tag_name }}.jar
asset_name: sliceanddice-fabric-${{ github.event.release.tag_name }}.jar
256 changes: 0 additions & 256 deletions build.gradle

This file was deleted.

Loading

0 comments on commit cb9401a

Please sign in to comment.