commit
ba37d2d34e
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo apt update >> /dev/null && sudo apt install zip -y >> /dev/null # Ensure zip is up to date.
|
||||||
|
cd iw4x/
|
||||||
|
cd iw4x_00/
|
||||||
|
zip -r iw4x_00.iwd *
|
||||||
|
find . ! -name 'iw4x_00.iwd' -type d -exec rm -rf {} +
|
||||||
|
find . ! -name 'iw4x_00.iwd' -type f -exec rm -rf {} +
|
||||||
|
cd ..
|
||||||
|
cd iw4x_01/
|
||||||
|
zip -r iw4x_01.iwd *
|
||||||
|
find . ! -name 'iw4x_01.iwd' -type d -exec rm -rf {} +
|
||||||
|
find . ! -name 'iw4x_01.iwd' -type f -exec rm -rf {} +
|
||||||
|
cd ..
|
||||||
|
cd ..
|
||||||
|
rm LICENSE
|
||||||
|
rm README.md
|
||||||
|
rm -rf .github
|
||||||
|
zip -r release.zip *
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
jobs:
|
||||||
|
create_release:
|
||||||
|
name: Create GitHub Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- run: 'bash ${GITHUB_WORKSPACE}/.github/release.sh'
|
||||||
|
- uses: marvinpinto/action-automatic-releases@latest
|
||||||
|
with:
|
||||||
|
repo_token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
prerelease: false
|
||||||
|
files: |
|
||||||
|
release.zip
|
Loading…
Reference in New Issue