Skip to content

Commit

Permalink
ci(github): update workflow publishing conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
clukhei committed May 23, 2024
1 parent 773899a commit ecb9841
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ name: Publish Latest Releases
on:
push:
tags:
- 'sgds/v[0-9]+.[0-9]+.[0-9]+'
- 'sgds-x-family/v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
publish-sgds:
if: startsWith(github.ref, 'refs/tags/sgds/')
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Publish Pre-releases
on:
push:
tags:
- 'sgds/v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'sgds/v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- 'sgds-x-family/v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'sgds-x-family/v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'

jobs:
publish-sgds:
if: startsWith(github.ref, 'refs/tags/sgds/')
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit ecb9841

Please sign in to comment.