From f9e24bfa1d49908a9c3dabddbe11f83aa1b33717 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 28 Jul 2024 01:48:37 -0400 Subject: [PATCH] CI: Automatically create releases for pushed tags --- .github/workflows/build-mod.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-mod.yml b/.github/workflows/build-mod.yml index a5809ccf..c035a005 100644 --- a/.github/workflows/build-mod.yml +++ b/.github/workflows/build-mod.yml @@ -1,11 +1,8 @@ name: build-mod on: - workflow_dispatch: - release: - types: [created] - pull_request: - -permissions: read-all + push: + tags: + - "p*" jobs: build-the-mod: @@ -14,5 +11,17 @@ jobs: contents: write actions: read steps: - - uses: argonui/TTSModManager.action@v1.0.0 - + - uses: actions/checkout@v3 + - run: wget https://github.com/argonui/TTSModManager/releases/download/v1.2.1/TTSModManager-Linux + shell: bash + - run: chmod +x TTSModManager-Linux + shell: bash + - run: ./TTSModManager-Linux -moddir="./" -modfile="./SCED ${{ github.ref_name }}.json" + shell: bash + - name: Create Release + uses: akkuman/gitea-release-action@v1 + env: + NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 + with: + files: "SCED ${{ github.ref_name }}.json" + name: "Patched ${{ github.ref_name }}"