Skip to content

Commit

Permalink
Merge pull request #32 from Gitjas/master
Browse files Browse the repository at this point in the history
Update InfinityAutoPackager.yaml
  • Loading branch information
Gitjas authored Oct 6, 2023
2 parents 33f9d88 + 7caf743 commit e250824
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .github/workflows/InfinityAutoPackager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,13 @@
# 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
call-workflow:
uses: ALIENQuake/InfinityAutoPackagerGlobal/.github/workflows/InfinityAutoPackagerGlobal.yaml@master
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/[email protected]
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/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.zip
asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.zip
tag: ${{ github.ref }}
overwrite: true

0 comments on commit e250824

Please sign in to comment.