diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-26 18:40:08 +0300 |
|---|---|---|
| committer | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-26 18:40:08 +0300 |
| commit | efa6b53b6bdd0abf139bf3c36ccc56c87e6d7d7c (patch) | |
| tree | aefcfd00ad654b0d610f719157c95b4dc4bfcfcb /.github/workflows | |
| parent | 4903a8c8b30622d79b44a051e3a0768eb3cfd9bc (diff) | |
Add release build for linux, fix python version at 3.9
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/pytest-on-push.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/release-with-executable.yml | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/.github/workflows/pytest-on-push.yml b/.github/workflows/pytest-on-push.yml index f14bbd2..a867168 100644 --- a/.github/workflows/pytest-on-push.yml +++ b/.github/workflows/pytest-on-push.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: '3.9' - name: Install dependencies run: | diff --git a/.github/workflows/release-with-executable.yml b/.github/workflows/release-with-executable.yml new file mode 100644 index 0000000..18233cf --- /dev/null +++ b/.github/workflows/release-with-executable.yml @@ -0,0 +1,40 @@ +name: Build and Release + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pyinstaller + apt-get install binutils + + - name: Build with PyInstaller + run: | + pyinstaller krr.py + zip -r ./dist/krr + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: . + asset_name: "krr-linux-${{ github.ref }}.zip" + asset_content_type: application/octet-stream |
