Browse Source

Merge 716f67454990ff5d8f195241f4059652106412df into f6ec9e5651bc39af80cedb6a0a57d9e977190587

Sevki 3 years ago
parent
commit
65bfd26884
1 changed files with 30 additions and 0 deletions
  1. 30 0
      .github/workflows/harvey.yml

+ 30 - 0
.github/workflows/harvey.yml

@@ -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,3 +34,31 @@ jobs:
         ARCH: amd64
         CC: ${{ matrix.cc }}
       run: ./util/ci.sh
+    - 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:
+        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