Skip to content

Commit

Permalink
Bump version, update tag system
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Nov 15, 2022
1 parent 09ae893 commit a699c9b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
48 changes: 34 additions & 14 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
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/[email protected]
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'
2 changes: 1 addition & 1 deletion FPFabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions gradle-compose.yml
Original file line number Diff line number Diff line change
@@ -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: ""
Expand Down

0 comments on commit a699c9b

Please sign in to comment.