ah_sce_unpacked/.gitea/workflows/build-and-release.yaml
Adam Goldsmith 5622e09558
All checks were successful
Build and Release / Build and Release (push) Successful in 1m32s
Update gitea actions for new default base url
2023-07-22 00:46:40 -04:00

34 lines
1.1 KiB
YAML

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: setup go
uses: actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
api_key: '${{secrets.RELEASE_TOKEN}}'
files: "Arkham SCE Adam_${{ github.ref_name }}.zip"
title: "Patched ${{ github.ref_name }}"