From a8baafa34cd12016c41fdb294979b05302b08235 Mon Sep 17 00:00:00 2001 From: GwendolyneFreddy Date: Tue, 14 Apr 2020 14:46:14 +0200 Subject: [PATCH] Included Linux and Mac Os X versions in the same package (thanks AL|EN's Infinity Auto Packager tool!) --- .github/workflows/InfinityAutoPackager.yaml | 45 +++++++++++++++++++++ 1 file changed, 45 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..dd898db --- /dev/null +++ b/.github/workflows/InfinityAutoPackager.yaml @@ -0,0 +1,45 @@ +# Infinity Auto Packager by AL|EN (alienquake@hotmail.com) +# A tool that automatically generates Infinity Engine mod packages when you publish a release. + +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 + + - 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 + + - name: Upload zip 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 }}.zip + asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.zip + tag: ${{ github.ref }} + overwrite: true