Herp derp I left the debug in there and forgot to reset errors.
This commit is contained in:
55
.gitea/workflows/release.yaml
Normal file
55
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Build and Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build with PyInstaller
|
||||
run: |
|
||||
cd app
|
||||
pyinstaller --onefile --add-data "ui:ui" wolServer.py
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: executable
|
||||
path: app/dist/wolServer
|
||||
|
||||
- name: Create Release
|
||||
run: |
|
||||
curl -X POST "https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases" \
|
||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"tag_name": "v1.0.0",
|
||||
"target_commitish": "main",
|
||||
"name": "v1.0.0",
|
||||
"body": "Release description",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
"assets": [
|
||||
{
|
||||
"name": "wolServer",
|
||||
"path": "app/dist/wolServer"
|
||||
}
|
||||
]
|
||||
}'
|
||||
Reference in New Issue
Block a user