Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 65bfd26

Browse files
authored
Merge 716f674 into f6ec9e5
2 parents f6ec9e5 + 716f674 commit 65bfd26

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/harvey.yml

+30
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: harvey
33
on:
44
push:
55
branches: [ master ]
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
68
pull_request:
79
branches: [ master ]
810

@@ -32,3 +34,31 @@ jobs:
3234
ARCH: amd64
3335
CC: ${{ matrix.cc }}
3436
run: ./util/ci.sh
37+
- name: Create Release
38+
id: create_release
39+
uses: actions/create-release@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
tag_name: ${{ github.ref }}
44+
release_name: Release ${{ github.ref }}
45+
draft: false
46+
prerelease: true
47+
- name: upload harvey 32bit
48+
uses: actions/upload-release-asset@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
53+
asset_path: ./sys/src/9/amd64/harvey.32bit
54+
asset_name: harvey.32bit
55+
asset_content_type: application/octet-stream
56+
- name: upload harvey
57+
uses: actions/upload-release-asset@v1
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
with:
61+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
62+
asset_path: ./sys/src/9/amd64/harvey
63+
asset_name: harvey
64+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)