|
@@ -3,6 +3,8 @@ name: harvey
|
|
|
on:
|
|
|
push:
|
|
|
branches: [ master ]
|
|
|
+ tags:
|
|
|
+ - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
|
pull_request:
|
|
|
branches: [ master ]
|
|
|
|
|
@@ -32,7 +34,31 @@ jobs:
|
|
|
ARCH: amd64
|
|
|
CC: ${{ matrix.cc }}
|
|
|
run: ./util/ci.sh
|
|
|
- - name: upload kernels
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
+ - name: Create Release
|
|
|
+ id: create_release
|
|
|
+ uses: actions/create-release@v1
|
|
|
+ env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ with:
|
|
|
+ tag_name: ${{ github.ref }}
|
|
|
+ release_name: Release ${{ github.ref }}
|
|
|
+ draft: false
|
|
|
+ prerelease: true
|
|
|
+ - name: upload harvey 32bit
|
|
|
+ uses: actions/upload-release-asset@v1
|
|
|
+ env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ with:
|
|
|
+ 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
|
|
|
+ asset_path: ./sys/src/9/amd64/harvey.32bit
|
|
|
+ asset_name: harvey.32bit
|
|
|
+ asset_content_type: application/octet-stream
|
|
|
+ - name: upload harvey
|
|
|
+ uses: actions/upload-release-asset@v1
|
|
|
+ env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
with:
|
|
|
- path: sys/src/9/amd64/harvey*
|
|
|
+ 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
|
|
|
+ asset_path: ./sys/src/9/amd64/harvey
|
|
|
+ asset_name: harvey
|
|
|
+ asset_content_type: application/octet-stream
|