Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Update v3.2.2 (#15) #17

Update v3.2.2 (#15)

Update v3.2.2 (#15) #17

Workflow file for this run

name: Publish mod in Thunderstore
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Extract manifest
run: |
echo "MODPACH_NAME=$(jq -r '.name' manifest.json)" >> "$GITHUB_ENV"
echo "MODPACK_VERSION=$(jq -r '.version_number' manifest.json)" >> "$GITHUB_ENV"
echo "MODPACK_DESCRIPTION=$(jq -r '.description' manifest.json)" >> "$GITHUB_ENV"
- name: Update modpack version
run: |
sed -i 's/__VERSION__/${{ env.MODPACK_VERSION }}/g' config/IntroTweaks.cfg
- name: Zip files
run: |
zip -r modpack.zip * -x .github\*
- name: Upload to Thunderstore
uses: GreenTF/[email protected]
with:
namespace: Netruitus
description: ${{ env.MODPACK_DESCRIPTION }}
token: ${{ secrets.THUNDERSTORE_TOKEN }}
name: ${{ env.MODPACH_NAME }}
version: ${{ env.MODPACK_VERSION }}
community: lethal-company
repo: https://github.com/Netruitus/lc-k8
file: modpack.zip
categories: |
modpacks
- name: Create Tag
run: |
git config --global user.email "${{ secrets.SECRET_EMAIL }}"
git config --global user.name "${{ secrets.SECRET_NAME }}"
git tag -a v${{ env.MODPACK_VERSION }} -m "[auto] Publish version ${{ env.MODPACK_VERSION }}"
git push origin --tags