From 24f89c46f6b0f34ee05f7a34de5d6e9988e9dcb6 Mon Sep 17 00:00:00 2001 From: lichenblankie Date: Sat, 11 Apr 2026 03:52:03 +0000 Subject: [PATCH] Fixed workflow build --- .forgejo/workflows/build.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 357b155..9f3a5e1 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -10,10 +10,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: https://code.forgejo.org/actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5 + uses: https://code.forgejo.org/actions/setup-python@v5 with: python-version: '3.11' @@ -26,12 +26,10 @@ jobs: run: | pyinstaller --onefile --console --name TinyWeb app.py - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: TinyWeb-linux-x64 - path: dist/TinyWeb - if-no-files-found: error + - name: Prepare artifact + run: | + cp dist/TinyWeb TinyWeb-linux-x64 + chmod +x TinyWeb-linux-x64 release: needs: build @@ -39,16 +37,11 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: TinyWeb-linux-x64 - - name: Make executable run: chmod +x TinyWeb-linux-x64 - name: Create Release - uses: actions/forgejo-release@v2 + uses: https://code.forgejo.org/actions/forgejo-release@v2 with: direction: upload release-dir: .