Skip to content

Commit

Permalink
Fix/cirelease: Added step for upload to GH (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hironichu authored Sep 27, 2023
1 parent dbf83b1 commit 3a600d9
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'self-hosted', "macos-latest", "windows-latest"]
job: [test, publish]
job: [test]
profile: [debug, release]
name: ${{ matrix.job }} ${{ matrix.profile }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -204,4 +204,34 @@ jobs:
target/${{matrix.profile}}/libwebtransport.so
target/${{matrix.profile}}/libwebtransport_aarch64.so
target/${{matrix.profile}}/libwebtransport.dylib
draft: true
draft: true
publish:
name: "Publish to Github"
needs: [test, build]
if: |
github.event_name == 'push' || !startsWith(github.event.pull_request.head.label, 'hironichu:') && ((github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')))
runs-on: "ubuntu-latest"
steps:
- name: Creating target structure
run: |
mkdir -p target
- name: Download artifact
uses: actions/download-artifact@master
with:
# name: release
path: target
- name: Get artifact from build
uses: softprops/action-gh-release@59c3b4891632ff9a897f99a91d7bc557467a3a22
if: |
github.repository == 'hironichu/webtransport' &&
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
target/release/webtransport.dll
target/release/libwebtransport.so
target/release/libwebtransport_aarch64.so
target/release/libwebtransport.dylib
draft: true

0 comments on commit 3a600d9

Please sign in to comment.