Skip to content

Commit

Permalink
feat: add github binary build
Browse files Browse the repository at this point in the history
  • Loading branch information
Schille committed Apr 1, 2022
1 parent 2637ceb commit 9803253
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/dist-build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
push:
tags:
- '*'
release:
types: [published]

jobs:
build:
Expand All @@ -27,7 +29,6 @@ jobs:
./pyoxidizer build exe --release
cp `find build/ -name "deck"` ./deck
strip -s ./deck
cp README.md ./README.md
cat pyproject.toml | grep version -m 1 | awk '{ print "APP_VERSION="substr($3, 2, length($3) -2)}' >> $GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v2
Expand All @@ -37,4 +38,12 @@ jobs:
deck
LICENSE
README.md
retention-days: 5
retention-days: 5
- name: Create release zip
if: ${{ github.event.release && github.event.action == 'published' }}
run: zip deck-${{ env.APP_VERSION }}-linux-amd64.zip "deck" "LICENSE" "README.md"
- name: Attach files to release
uses: softprops/action-gh-release@v1
if: ${{ github.event.release && github.event.action == 'published' }}
with:
files: deck-${{ env.APP_VERSION }}-linux-amd64.zip
12 changes: 11 additions & 1 deletion .github/workflows/dist-build-mac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
push:
tags:
- '*'
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -70,4 +72,12 @@ jobs:
deck
LICENSE
README.md
retention-days: 5
retention-days: 5
- name: Create release zip
if: ${{ github.event.release && github.event.action == 'published' }}
run: zip deck-${{ env.APP_VERSION }}-darwin-amd64.zip "deck" "LICENSE" "README.md"
- name: Attach files to release
uses: softprops/action-gh-release@v1
if: ${{ github.event.release && github.event.action == 'published' }}
with:
files: deck-${{ env.APP_VERSION }}-darwin-amd64.zip

0 comments on commit 9803253

Please sign in to comment.