Skip to content

build(deps): bump 0ad-matters/gh-action-build-pyromod from 1 to 2 #16

build(deps): bump 0ad-matters/gh-action-build-pyromod from 1 to 2

build(deps): bump 0ad-matters/gh-action-build-pyromod from 1 to 2 #16

Workflow file for this run

name: Build and Test Pyromod
on:
push:
branches:
- trunk
tags:
- v**
pull_request:
branches:
- trunk
env:
MOD_NAME: no-gather
jobs:
build-pyromod:
if: ${{ github.ref_type != 'tag' }}
runs-on: ubuntu-latest
env:
MOD_VERSION: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- uses: 0ad-matters/gh-action-build-pyromod@v2
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@v3
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@v3
- name: Massage Variables
run: |
echo "MOD_VERSION=${MOD_VERSION:1}" >> $GITHUB_ENV
- uses: 0ad-matters/gh-action-build-pyromod@v2
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