From e7e494d83c48ee60f3b994149c9bac5b33f04cac Mon Sep 17 00:00:00 2001 From: skellytz <46245689+skellytz@users.noreply.github.com> Date: Mon, 29 May 2023 01:11:37 +0200 Subject: [PATCH] Create InfinityAutoPackager.yaml --- .github/workflows/InfinityAutoPackager.yaml | 48 +++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/InfinityAutoPackager.yaml diff --git a/.github/workflows/InfinityAutoPackager.yaml b/.github/workflows/InfinityAutoPackager.yaml new file mode 100644 index 0000000..f243c36 --- /dev/null +++ b/.github/workflows/InfinityAutoPackager.yaml @@ -0,0 +1,48 @@ +# Infinity Auto Packager by AL|EN (alienquake@hotmail.com) +# A tool that automatically generates Infinity Engine mod packages when you publish a release. + +name: Infinity Auto Packager +on: + release: + types: [published] + workflow_dispatch: + +jobs: + InfinityAutoPackager: + if: github.ref_type == 'tag' + runs-on: ubuntu-latest + permissions: write-all + steps: + + - name: Initial setup + run: | + git lfs uninstall + git config --global core.autocrlf false + git config --global core.ignorecase true + + - name: Clone repository using 'github.ref' from release + uses: actions/checkout@master + + - name: Create Infinity Engine Mod Packages (.iemod and .zip) + uses: ALIENQuake/CreateIEModZipPackage@master + id: CreateIEModZipPackage + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload iemod package to latest release + uses: svenstaro/upload-release-action@2.5.0 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.iemod + asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.iemod + tag: ${{ github.ref }} + overwrite: true + + - name: Upload zip package to latest release + uses: svenstaro/upload-release-action@2.5.0 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.zip + asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.zip + tag: ${{ github.ref }} + overwrite: true