Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
automate releases
  • Loading branch information
tsterbak committed Jan 4, 2023
1 parent 65e6b4d commit 6e3efb9
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'ubuntu-latest', 'macos-latest', 'windows-latest']
os: ['ubuntu-20.04', 'ubuntu-latest', 'macos-latest']

steps:
- uses: actions/checkout@v2
Expand All @@ -47,3 +47,29 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/openandroidinstaller-${{ github.ref_name }}-${{ matrix.os }}
build-windows:
needs: ci
runs-on: 'windows-latest'

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt
- run: python scripts/download-tools.py
- run: python scripts/build.py
- uses: actions/upload-artifact@v3
with:
name: openandroidinstaller-${{ github.ref_name }}-${{ matrix.os }}.exe
path: dist/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/openandroidinstaller-${{ github.ref_name }}-${{ matrix.os }}.exe

0 comments on commit 6e3efb9

Please sign in to comment.