Skip to content

Commit

Permalink
Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hironichu committed Sep 27, 2023
1 parent 7cada5e commit 81c2a08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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 @@ -209,7 +209,7 @@ jobs:
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/')
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
Expand All @@ -222,6 +222,9 @@ jobs:
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:
Expand Down

0 comments on commit 81c2a08

Please sign in to comment.