diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 38244d47..6909a273 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -1,34 +1,54 @@ name: Create Release -on: create +on: + release: + types: [published] jobs: build: - strategy: - matrix: - # Use these Java versions - java: [ - 17 - ] - # and run on both Linux and Windows - os: [ubuntu-20.04] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - name: checkout repository uses: actions/checkout@v2 - - name: setup jdk ${{ matrix.java }} + - name: setup jdk 17 uses: actions/setup-java@v1 with: - java-version: ${{ matrix.java }} + java-version: 17 - name: make gradle wrapper executable - if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlecw - name: build run: ./gradlecw build - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: | FPFabric/build/libs/* FPForge/build/libs/* + + - name: Publish-Forge-Curseforge + uses: Kir-Antipov/mc-publish@v3.2 + with: + curseforge-id: $curseforgeid$ + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + loaders: forge + name: ${{github.ref_name}} - Forge + version-type: beta + files: '*Forge/build/libs/!(*-@(dev|sources|javadoc|all)).jar' + - name: Publish-Forge-Modrinth + uses: Kir-Antipov/mc-publish@v3.2 + with: + modrinth-id: $modrinthid$ + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + loaders: forge + name: ${{github.ref_name}} - Forge + files: '*Forge/build/libs/!(*-@(dev|sources|javadoc|all)).jar' + - name: Publish-Fabric + uses: Kir-Antipov/mc-publish@v3.2 + with: + modrinth-id: $modrinthid$ + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + curseforge-id: $curseforgeid$ + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + loaders: fabric + name: ${{github.ref_name}} - Fabric + files: '*Fabric/build/libs/!(*-@(dev|sources|javadoc|all)).jar' \ No newline at end of file diff --git a/FPFabric/src/main/resources/fabric.mod.json b/FPFabric/src/main/resources/fabric.mod.json index 5b59468c..3b7b7278 100644 --- a/FPFabric/src/main/resources/fabric.mod.json +++ b/FPFabric/src/main/resources/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "firstperson", - "version": "2.1.2", + "version": "2.2.0", "name": "FirstpersonModel", "description": "Enables the third person Model in firstperson", "authors": [ diff --git a/gradle-compose.yml b/gradle-compose.yml index e5ed079b..8aed7c50 100644 --- a/gradle-compose.yml +++ b/gradle-compose.yml @@ -1,10 +1,10 @@ version: '0.0.1' -source: "https://github.com/tr7zw/ForgeFabricComposeTemplate/tree/1.18.2-shared/" +source: "https://github.com/tr7zw/ForgeFabricComposeTemplate/tree/1.18.2-mcpublish/" replacements: group: "dev.tr7zw" name: "FirstPerson" id: "firstperson" - version: "2.1.2" + version: "2.2.0" author: "tr7zw" relocationpackage: "dev.tr7zw.firstperson" dependencies: ""