diff options
Diffstat (limited to '.github/workflows/release-with-executable.yml')
| -rw-r--r-- | .github/workflows/release-with-executable.yml | 40 |
1 files changed, 40 insertions, 0 deletions
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 |
