2024-10-07 20:23:21 +02:00
|
|
|
name: Upload release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2024-10-07 20:31:09 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
apt-get update &&
|
|
|
|
apt-get install -y mingw-w64 zip
|
|
|
|
|
2024-10-07 20:23:21 +02:00
|
|
|
- name: Build
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: Create ZIP file
|
|
|
|
run: zip -r auto-obs-rp-restart.zip LICENSE AutoOBSRPRestart.lua monitor.dll
|
|
|
|
|
|
|
|
- name: Create release
|
|
|
|
uses: akkuman/gitea-release-action@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.TOKEN }}
|
|
|
|
name: Latest version
|
|
|
|
tag_name: latest
|
|
|
|
files: auto-obs-rp-restart.zip
|