Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fuchs committed Nov 6, 2020
1 parent e988713 commit b9a4456
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: SailfishOS 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.4.0.22

- name: Upload build result
uses: actions/upload-artifact@v2
with:
name: 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 }}


0 comments on commit b9a4456

Please sign in to comment.