Skip to content

Commit 1b149a9

Browse files
committed
ci: update release work.
1 parent df8d80a commit 1b149a9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Release
22

33
on:
44
push:
5-
branches: [ master ]
5+
tags:
6+
- 'v**'
67

78
env:
89
CARGO_TERM_COLOR: always
@@ -11,7 +12,6 @@ jobs:
1112

1213
create:
1314
runs-on: ubuntu-latest
14-
if: ${{ github.ref == 'refs/tags/**' }}
1515
outputs:
1616
upload_url: ${{ steps.create_release.outputs.upload_url }}
1717
steps:
@@ -48,7 +48,6 @@ jobs:
4848

4949
publish:
5050
runs-on: ubuntu-latest
51-
if: ${{ github.ref == 'refs/tags/**' }}
5251
steps:
5352
- uses: actions/checkout@v2
5453

@@ -68,7 +67,6 @@ jobs:
6867
os: [ubuntu-latest, windows-latest, macos-latest]
6968

7069
runs-on: ${{ matrix.os }}
71-
if: ${{ github.ref == 'refs/tags/**' }}
7270

7371
steps:
7472
- uses: actions/checkout@v2
@@ -119,7 +117,7 @@ jobs:
119117
env:
120118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121119
with:
122-
# 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
120+
# 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
123121
upload_url: ${{ needs.create.outputs.upload_url }}
124122
asset_path: grc.zip
125123
asset_name: grc-${{ runner.os }}.zip

0 commit comments

Comments
 (0)