feat: update workflow versions #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pre-release | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-linux: | |
| name: Build for Linux | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Set up Python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: "3.11" | |
| - name: Set up Project | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| curl -Lo seekers-api.zip https://github.com/seekers-dev/seekers-api/releases/download/prerelease/seekers-api.zip | |
| unzip seekers-api.zip | |
| - name: Build Binaries | |
| run: | | |
| pip install cx_Freeze | |
| python setup.py build | |
| zip -r seekers-linux.zip ./build | |
| - name: Deploy Artifact | |
| uses: actions/[email protected] | |
| with: | |
| # Artifact name | |
| name: build-linux # optional, default is artifact | |
| # A file, directory or wildcard pattern that describes what to upload | |
| path: seekers-linux.zip | |
| # The desired behavior if no files are found using the provided path. | |
| if-no-files-found: error # optional, default is warn | |
| # The level of compression for Zlib to be applied to the artifact archive. The value can range from 0 to 9: - 0: No compression - 1: Best speed - 6: Default compression (same as GNU Gzip) - 9: Best compression Higher levels will result in better compression, but will take longer to complete. For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads. | |
| overwrite: true # optional, default is false | |
| # If true, hidden files will be included in the artifact. If false, hidden files will be excluded from the artifact. | |
| include-hidden-files: false # optional, default is false | |
| build-windows: | |
| name: Build for Windows | |
| runs-on: "windows-latest" | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Set up Python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: "3.11" | |
| - name: Set up Project | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| curl -Lo seekers-api.zip https://github.com/seekers-dev/seekers-api/releases/download/prerelease/seekers-api.zip | |
| unzip seekers-api.zip | |
| - name: Build Binaries | |
| run: | | |
| pip install cx_Freeze | |
| python setup.py build | |
| powershell Compress-Archive -Path "build\*" -DestinationPath "seekers-win32.zip" | |
| - name: Deploy Artifact | |
| uses: actions/[email protected] | |
| with: | |
| # Artifact name | |
| name: build-windows # optional, default is artifact | |
| # A file, directory or wildcard pattern that describes what to upload | |
| path: seekers-win32.zip | |
| # The desired behavior if no files are found using the provided path. | |
| if-no-files-found: error # optional, default is warn | |
| # The level of compression for Zlib to be applied to the artifact archive. The value can range from 0 to 9: - 0: No compression - 1: Best speed - 6: Default compression (same as GNU Gzip) - 9: Best compression Higher levels will result in better compression, but will take longer to complete. For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads. | |
| overwrite: true # optional, default is false | |
| # If true, hidden files will be included in the artifact. If false, hidden files will be excluded from the artifact. | |
| include-hidden-files: false # optional, default is false | |
| prerelease: | |
| name: Prerelease | |
| runs-on: "ubuntu-latest" | |
| needs: [ "build-linux", "build-windows" ] | |
| steps: | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v5 | |
| with: | |
| # Name of the artifact to download. | |
| # If unspecified, all artifacts for the run are downloaded. | |
| # Optional. | |
| name: build-linux | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v5 | |
| with: | |
| # Name of the artifact to download. | |
| # If unspecified, all artifacts for the run are downloaded. | |
| # Optional. | |
| name: build-windows | |
| - uses: "marvinpinto/action-automatic-releases@latest" | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "prerelease" | |
| prerelease: true | |
| title: "prerelease" | |
| files: | | |
| *.zip | |