Herp derp I left the debug in there and forgot to reset errors.

This commit is contained in:
2024-12-15 00:23:18 +02:00
parent 6d9a434d69
commit 0c36f6139b
3 changed files with 56 additions and 19 deletions

View File

@@ -1,19 +0,0 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

View 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"
}
]
}'

View File

@@ -1,3 +1,4 @@
pyinstaller==6.11.1
Flask==3.1.0
flask_httpauth==4.8.0
flask_limiter==3.9.2