Skip to content

Commit

Permalink
publish release when tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
imLinguin committed Jul 4, 2023
1 parent f5a8241 commit dfce98d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build the runtime
on: workflow_dispatch
on:
push:
branches: main
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,10 +49,19 @@ jobs:
run: tar -czvf runtime.tar.gz runtime

- name: Upload runtime
if: github.ref_type == 'branch'
uses: actions/upload-artifact@v3
with:
name: runtime
path: runtime.tar.gz


- name: Publish release
if: github.ref_type == 'tag'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
prerelease: false
draft: false
files: runtime.tar.gz


2 changes: 1 addition & 1 deletion recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ingredients:

- files:
- libgomp.so.1
package: libgomp1-i386-cross libgomp1-i386-cross:i386
package: libgomp1 libgomp1:i386

- files:
- libaudio.so.2
Expand Down

0 comments on commit dfce98d

Please sign in to comment.