forked from gpodder/gpodder-sailfish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thilo Kogge
committed
Sep 20, 2020
1 parent
d43b5e7
commit 8ac1b3f
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Gpodder build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare | ||
run: mkdir output | ||
|
||
- name: Build armv7hl | ||
id: build_armv7hl | ||
uses: coderus/github-sfos-build@master | ||
with: | ||
release: 3.3.0.14 | ||
|
||
- name: Upload build result | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: gpodder-rpms | ||
path: RPMS | ||
|
||
- name: Create release | ||
if: contains(github.ref, 'release') | ||
run: | | ||
set -x | ||
assets=() | ||
for asset in RPMS/*.rpm; do | ||
assets+=("-a" "$asset") | ||
done | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release create "${assets[@]}" -m "$tag_name" "$tag_name" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |