diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index c7b774f..0a00b93 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -10,16 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install system dependencies (Tkinter) - # В Ubuntu для работы Tkinter необходим системный пакет python3-tk - run: sudo apt-get update && sudo apt-get install -y python3-tk + run: apt-get update && apt-get install -y python3-tk - name: Install Python dependencies run: | @@ -28,7 +27,6 @@ jobs: pip install pyinstaller - name: Build Linux executable - # Флаг --windowed убирает консоль, --onefile собирает все в один файл run: pyinstaller --onefile --windowed --name factorio-mod-sync-linux main.py - name: Upload Linux artifact @@ -40,7 +38,6 @@ jobs: build-windows: name: Build Windows runs-on: ubuntu-latest - # Используем контейнер с настроенным Wine и Python 3.11 под Windows container: image: tobix/pywine:3.11 steps: @@ -48,7 +45,7 @@ jobs: run: apt-get update && apt-get install -y nodejs git - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Python dependencies (Windows) run: | @@ -71,12 +68,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: path: artifacts - name: Add files to Forgejo Release - # Обрати внимание: теперь тут полная ссылка на GitHub uses: https://github.com/softprops/action-gh-release@v2 with: files: |