diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml deleted file mode 100644 index 3ed5fa1..0000000 --- a/.github/workflows/pyinstaller.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Package Application with Pyinstaller - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - name: Build Executables - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - include: - - os: ubuntu-latest - BUILD_CMD: pyinstaller collectmeteranalog.spec - OUT_FILE_NAME: collectmeteranalog - ASSET_MIME: application/octet-stream - - os: macos-latest - BUILD_CMD: pyinstaller collectmeteranalog.spec - POST_BUILD_CMD: > - cd dist/ && - ls -Rls && - zip -r9 collectmeteranalog collectmeteranalog - OUT_FILE_NAME: collectmeteranalog.zip - ASSET_MIME: application/zip - - os: windows-latest - BUILD_CMD: pyinstaller collectmeteranalog.spec - OUT_FILE_NAME: collectmeteranalog.exe - ASSET_MIME: application/vnd.microsoft.portable-executable - steps: - - uses: actions/checkout@v3 - - name: Setup Python - uses: actions/setup-python@v3 - with: - python-version: '3.9.12' - - name: Install dependencies for ${{ matrix.os }} - run: | - python -m pip install --upgrade pip wheel setuptools - pip install -r requirements.txt - pip install pyinstaller - - name: Pre-Build for ${{ matrix.os }} - if: ${{ matrix.PRE_BUILD_CMD != '' }} - run: ${{ matrix.PRE_BUILD_CMD }} - - name: Build with pyinstaller for ${{ matrix.os }} - run: ${{ matrix.BUILD_CMD }} - - name: Post-Build for ${{ matrix.os }} - if: ${{ matrix.POST_BUILD_CMD != '' }} - run: ${{ matrix.POST_BUILD_CMD }} - - name: Upload release assets - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_name: '${{runner.os}}-${{matrix.OUT_FILE_NAME}}' - asset_path: './dist/${{matrix.OUT_FILE_NAME}}' - asset_content_type: ${{ matrix.ASSET_MIME }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b25c425..11b5638 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,11 +76,6 @@ jobs: - name: Post-Build for ${{ matrix.os }} if: ${{ matrix.POST_BUILD_CMD != '' }} run: ${{ matrix.POST_BUILD_CMD }} - - name: Upload Artifact for ItchIO Uploader - uses: actions/upload-artifact@v3 - with: - name: ${{runner.os}} - path: ./dist/${{ matrix.OUT_FILE_NAME }} - name: Upload release assets uses: actions/upload-release-asset@v1 env: