Skip to content

Commit

Permalink
Upload as release artifacts
Browse files Browse the repository at this point in the history
Also change build triggers to manual, pull_request and cron every 6 hours
  • Loading branch information
frangarcj authored May 26, 2021
1 parent ec692fb commit 595079e
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Packages

on:
push:
branches:
- master
workflow_dispatch:
pull_request:
schedule:
- cron: "0 0 * * *"
- cron: "0 */6 * * *"
repository_dispatch:
types: [run_build]

Expand Down Expand Up @@ -54,6 +52,21 @@ jobs:
with:
name: package
path: ${{ matrix.package }}/*-arm.tar.xz
- name: Rename release artifacts
if: contains(github.ref,'refs/heads/master')
run: |
cd ${{ matrix.package }}
export FILE=`echo *-arm.tar.xz`
mv $FILE ${{ matrix.package }}.tar.xz
- uses: svenstaro/upload-release-action@v2
if: contains(github.ref,'refs/heads/master')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.package }}/*.tar.xz
overwrite: true
file_glob: true
tag: ${{ github.ref }}
release_name: master
build_depends:
needs: [prepare_jobs, build]
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -94,4 +107,18 @@ jobs:
with:
name: package
path: ${{ env.PACKAGE }}/*-arm.tar.xz

- name: Rename release artifacts
if: contains(github.ref,'refs/heads/master')
run: |
cd ${{ env.PACKAGE }}
export FILE=`echo *-arm.tar.xz`
mv $FILE ${{ env.PACKAGE }}.tar.xz
- uses: svenstaro/upload-release-action@v2
if: contains(github.ref,'refs/heads/master')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.PACKAGE }}/*.tar.xz
overwrite: true
file_glob: true
tag: ${{ github.ref }}
release_name: master

0 comments on commit 595079e

Please sign in to comment.