ah_sce_unpacked/.gitea/workflows/build-and-release.yaml

30 lines
988 B
YAML
Raw Normal View History

name: Build and Release
on:
push:
tags:
- "*"
jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
container: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '>=3.11'
- name: Install tts_yaml_unpacker
run: pip install git+https://git.adamgoldsmith.name/adam/tts_yaml_unpacker
- name: Pack into Json
run: tts_yaml_unpacker pack unpacked.yaml "Arkham SCE Adam_${{ github.ref_name }}.json"
- name: zip json
run: python -m zipfile -c "Arkham SCE Adam_${{ github.ref_name }}.zip" "Arkham SCE Adam_${{ github.ref_name }}.json"
- name: Create Release
2024-04-28 09:58:05 -04:00
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
files: "Arkham SCE Adam_${{ github.ref_name }}.zip"
2024-04-28 09:58:05 -04:00
name: "Patched ${{ github.ref_name }}"