Skip to content

Commit

Permalink
feat: ⚑ ver 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jqshuv committed Nov 22, 2023
1 parent 78080fb commit 2198dac
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: "πŸ“™ Modpack Info"
steps:
- name: "πŸ” Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: "πŸ“› Get tag"
id: version
uses: "WyriHaximus/github-action-get-previous-tag@v1"
Expand All @@ -30,28 +30,28 @@ jobs:
changelog: ${{steps.changelog.outputs.changelog}}
steps:
- name: "πŸ” Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: "πŸ—’οΈ Build Changelog"
id: changelog
uses: mikepenz/release-changelog-builder-action@v3.0.1
uses: mikepenz/release-changelog-builder-action@v4
env:
GITHUB_TOKEN: ${{ secrets.PROFILE_TOKEN }}

build_19:
name: 🐸 Build 1.19
build_20:
name: 🐸 Build 1.20
runs-on: ubuntu-latest
steps:
- name: πŸ” Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: πŸ“¦ ZIP
uses: vimtor/action-zip@v1
with:
files: assets/ pack.mcmeta pack.png credits.md
dest: pack.zip
- name: 🏹 Upload
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3
with:
name: JqshuvPack-1.19.X
name: JqshuvPack-1.20.X
path: |
assets/
pack.mcmeta
Expand All @@ -63,19 +63,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: [1.16, 1.17, 1.18]
version: [1.16, 1.17, 1.18, 19]
include:
- version: 1.16
pack_version: 6
- version: 1.17
pack_version: 7
- version: 1.18
pack_version: 8
- version: 1.19
pack_version: 13
steps:
- name: πŸ” Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: 'ver/${{ matrix.version }}'
- name: πŸ’Ύ Update config.json
run: echo "`jq '.pack.pack_format="${{ matrix.pack_version }}"' pack.mcmeta`" > pack.mcmeta
- name: πŸ“¦ ZIP
uses: vimtor/action-zip@v1
with:
files: assets/ pack.mcmeta pack.png credits.md
dest: pack.zip
- name: 🏹 Upload
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3
with:
name: JqshuvPack-${{ matrix.version }}.X
path: |
Expand All @@ -90,27 +101,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: [1.16, 1.17, 1.18, 1.19]
version: [1.16, 1.17, 1.18, 1.19, 1.20]
steps:
- name: "πŸ”½ Download Packs"
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: JqshuvPack-${{ matrix.version }}.X
- name: πŸ“¦ ZIP
run: zip -r JqshuvPack-${{ matrix.version }}.X.zip *
- name: 🏹 Upload
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3
with:
name: packs
path: JqshuvPack-${{ matrix.version }}.X.zip

release-github:
runs-on: ubuntu-latest
needs: [build_old, build_19, zip_build, changelog, getinfo]
needs: [build_old, build_20, zip_build, changelog, getinfo]
name: "πŸ™ Release to Github"
steps:
- name: "πŸ”½ Download Packs"
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: packs
- name: "🐍 Get release type"
Expand All @@ -134,4 +145,5 @@ jobs:
JqshuvPack-1.17.X.zip
JqshuvPack-1.18.X.zip
JqshuvPack-1.19.X.zip
JqshuvPack-1.20.X.zip
token: ${{ secrets.PROFILE_TOKEN }}

0 comments on commit 2198dac

Please sign in to comment.