Merge pull request #80 from seekers-dev/sourceforge #39
This file contains 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" | |
jobs: | |
pre-release-linux: | |
name: "Pre Release Linux" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: "Install requirements" | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r seekers/grpc/requirements-dev.txt | |
sudo apt install protobuf-compiler | |
- name: "Build gRPC stubs" | |
run: | | |
cd seekers/grpc | |
bash compile_protos.sh | |
cd ../.. | |
- name: "Create archives" | |
run: | | |
zip -r seekers-linux-stubs.zip seekers/grpc/stubs | |
zip -r seekers-linux.zip * | |
- name: "Build binaries" | |
run: | | |
bash freeze.sh | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest-linux" | |
prerelease: true | |
title: "Pre Release Linux" | |
files: | | |
*.zip | |
pre-release-windows: | |
name: "Pre Release Windows" | |
runs-on: "windows-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: "Install requirements" | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r .\seekers\grpc\requirements-dev.txt | |
- name: "Build gRPC stubs" | |
run: | | |
cd seekers\grpc | |
.\compile_protos.bat | |
cd ..\.. | |
- name: "Create archives" | |
run: | | |
powershell Compress-Archive ".\" "seekers-win32.zip" | |
powershell Compress-Archive ".\seekers\grpc\stubs" "seekers-win32-stubs.zip" | |
- name: "Build binaries" | |
run: | | |
.\freeze.bat | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest-windows" | |
prerelease: true | |
title: "Pre Release Windows" | |
files: | | |
*.zip |