From c6c4bbfb55c7c970f28c0d7500151cede3c29204 Mon Sep 17 00:00:00 2001 From: Bubb13 <36863623+Bubb13@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:22:34 -0700 Subject: [PATCH] Update InfinityAutoPackager.yaml --- .github/workflows/InfinityAutoPackager.yaml | 35 +++++---------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/workflows/InfinityAutoPackager.yaml b/.github/workflows/InfinityAutoPackager.yaml index 7431e59..3672060 100644 --- a/.github/workflows/InfinityAutoPackager.yaml +++ b/.github/workflows/InfinityAutoPackager.yaml @@ -1,35 +1,14 @@ # 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] -jobs: - InfinityAutoPackager: - runs-on: ubuntu-latest - steps: - - - name: Initial setup - run: | - git lfs uninstall - git config --global core.autocrlf false - git config --global core.ignorecase true + workflow_dispatch: - - 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@v1-release - if: github.ref != 'refs/heads/master' - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.iemod - asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.iemod - tag: ${{ github.ref }} - overwrite: true +jobs: + call-workflow: + uses: ALIENQuake/InfinityAutoPackagerGlobal/.github/workflows/InfinityAutoPackagerGlobal.yaml@master + permissions: write-all