diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-12-19 15:42:27 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2020-01-29 01:29:49 -0500 |
| commit | 2eb072987eafb6276fa7bbc15816d2d733b7bd93 (patch) | |
| tree | 025ef90aa561a325bb100068b564ff1ed8d63c55 | |
| parent | a440e2dc77c8aecc9723d07cc5db829d68c6d2d9 (diff) | |
separate job for release
| -rw-r--r-- | .github/workflows/build.yml | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74c61d13..6a79b98a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,46 @@ jobs: with: name: inkstitch-windows path: artifacts + mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - uses: actions/setup-python@v1 + with: + python-version: '2.7.x' + - name: download inkscape + shell: bash + run: | + curl -sOL https://inkscape.org/en/gallery/item/12187/inkscape-0.92.3.tar.bz2 + - name: install dependencies + shell: bash + run: | + pip install -r requirements.txt + pip install pyinstaller==3.3.1 + + tar -jxf inkscape-0.92.3.tar.bz2 + rm inkscape-0.92.3.tar.bz2 + mv inkscape-0.92.3 inkscape + + echo "::add-path::${{ env.pythonLocation }}\bin" + - shell: bash + run: | + make dist + find . + env: + BUILD: osx + - uses: actions/upload-artifact@master + with: + name: inkstitch-mac + path: artifacts + + release: + runs-on: ubuntu-latest + needs: [windows, mac] + if: always() + steps: - name: determine release info shell: bash run: | @@ -61,7 +101,19 @@ jobs: echo "::set-env name=release_tag::${tag}" echo "::set-env name=prerelease::true" echo "::set-env name=title::development build of $branch" - fi + fi + - name: download artifacts + uses: actions/download-artifact@v1 + with: + name: 'inkstitch-*' + path: 'artifacts/' + - name: unzip artifacts + shell: bash + run: | + cd artifacts + for file in inkstitch-*.zip; do + unzip $file + done - name: create/update release uses: "marvinpinto/action-automatic-releases@latest" with: |
