Replace Drone automatic releases with Gitea Actions workflow
This commit is contained in:
parent
f1cd01fd8f
commit
c887920910
23
.drone.yml
23
.drone.yml
@ -1,23 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: python
|
|
||||||
commands:
|
|
||||||
- pip install git+https://git.adamgoldsmith.name/adam/tts_yaml_unpacker
|
|
||||||
- tts_yaml_unpacker pack unpacked.yaml "Arkham SCE Adam_${DRONE_TAG}.json"
|
|
||||||
- python -m zipfile -c "Arkham SCE Adam_${DRONE_TAG}.zip" "Arkham SCE Adam_${DRONE_TAG}.json"
|
|
||||||
- name: release
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: Gitea_API_Key
|
|
||||||
base_url: https://git.adamgoldsmith.name
|
|
||||||
files: "Arkham SCE Adam_${DRONE_TAG}.zip"
|
|
||||||
title: "Patched ${DRONE_TAG}"
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
33
.gitea/workflows/build-and-release.yaml
Normal file
33
.gitea/workflows/build-and-release.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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: https://github.com/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: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- name: Create Release
|
||||||
|
uses: actions/release-action@main
|
||||||
|
with:
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
files: "Arkham SCE Adam_${{ github.ref_name }}.zip"
|
||||||
|
title: "Patched ${{ github.ref_name }}"
|
Loading…
Reference in New Issue
Block a user