Remove "new" keyword from all Random maps #217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build Pyromod | |
on: | |
push: | |
branches: [master] | |
tags: [v**] | |
pull_request: | |
branches: [master] | |
env: | |
MOD_NAME: community-maps-2 | |
jobs: | |
build-pyromod: | |
if: ${{ github.ref_type != 'tag' }} | |
runs-on: ubuntu-latest | |
env: | |
MOD_VERSION: ${{ github.sha }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: 0ad-matters/gh-action-build-pyromod@v1 | |
with: | |
name: ${{ env.MOD_NAME }} | |
version: ${{ env.MOD_VERSION }} | |
id: build-pyromod | |
- name: Upload Artifacts | |
# Uploads artifacts (combined into a zip file) to the workflow output page | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.MOD_NAME }}-${{ env.MOD_VERSION }} | |
path: output/${{ env.MOD_NAME }}*.* | |
release-pyromod: | |
if: ${{ github.ref_type == 'tag' }} | |
runs-on: ubuntu-latest | |
env: | |
MOD_VERSION: ${{ github.ref_name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Massage Variables | |
run: | | |
echo "MOD_VERSION=${MOD_VERSION:1}" >> $GITHUB_ENV | |
- uses: 0ad-matters/gh-action-build-pyromod@v1 | |
with: | |
name: ${{ env.MOD_NAME }} | |
version: ${{ env.MOD_VERSION }} | |
id: build-pyromod | |
- name: Create sha256sum | |
run: | | |
OUTPUT_FILE="$MOD_NAME-$MOD_VERSION.pyromod" | |
cd output | |
sha256sum $OUTPUT_FILE > $OUTPUT_FILE.sha256sum | |
- name: Release PyroMod | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
prerelease: false | |
artifacts: output/${{ env.MOD_NAME }}*.* | |
token: ${{ secrets.GITHUB_TOKEN }} | |
omitNameDuringUpdate: true | |
omitBodyDuringUpdate: true |