diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index b83ebe7..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Build Windows Executable - -on: - push: - branches: - - master - - main - tags: - - 'v*' - pull_request: - branches: - - master - - main - workflow_dispatch: - -permissions: - contents: write - -jobs: - build: - name: Build BetterCurseForge.exe - runs-on: windows-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - cache: 'pip' - - - name: Install build dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pyinstaller pillow pywin32 - - - name: Build executable with PyInstaller - run: | - python -m PyInstaller BetterCurseForge.spec --noconfirm - - - name: Verify build output - run: | - if (-not (Test-Path "dist/BetterCurseForge.exe")) { - Write-Error "dist/BetterCurseForge.exe was not created!" - exit 1 - } - Get-Item "dist/BetterCurseForge.exe" | Select-Object Name, Length, LastWriteTime - - - name: Upload executable artifact - uses: actions/upload-artifact@v4 - with: - name: BetterCurseForge-Windows - path: dist/BetterCurseForge.exe - if-no-files-found: error - retention-days: 30 - - - name: Attach executable to GitHub Release - if: startsWith(github.ref, 'refs/tags/v') - uses: softprops/action-gh-release@v2 - with: - files: dist/BetterCurseForge.exe - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml deleted file mode 100644 index 5b7cec5..0000000 --- a/.github/workflows/deploy-docs.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Deploy Documentation - -on: - push: - branches: - - master - - main - paths: - - 'docs/**' - - '.github/workflows/deploy-docs.yml' - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: pages - cancel-in-progress: false - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - cache-dependency-path: docs/package-lock.json - - - name: Setup Pages - uses: actions/configure-pages@v4 - - - name: Install documentation dependencies - run: npm ci - working-directory: docs - - - name: Build VitePress documentation - run: npm run build - working-directory: docs - - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 - with: - path: docs/.vitepress/dist - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 1f04562..98c8b74 100644 --- a/.gitignore +++ b/.gitignore @@ -43,4 +43,6 @@ update_icon.bat update_icon.py docs_for_claude.json +# GitHub workflows +.github/