Skip to content

Commit cd3b735

Browse files
authored
Release the artifacts on release. (#2)
1 parent 534f871 commit cd3b735

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,14 @@ jobs:
6464
with:
6565
name: sysroot
6666
path: artifacts/sysroot-${{ matrix.arch }}.tar.gz
67+
68+
- name: Upload release artifacts
69+
if: |
70+
github.event_name == 'release' &&
71+
github.repository_owner == 'toitlang'
72+
uses: svenstaro/upload-release-action@v2
73+
with:
74+
repo_token: ${{ secrets.GITHUB_TOKEN }}
75+
file: artifacts/sysroot-${{ matrix.arch }}.tar.gz
76+
tag: ${{ github.ref }}
77+
overwrite: true

0 commit comments

Comments
 (0)