Skip to content

Commit

Permalink
fix CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi <[email protected]>
  • Loading branch information
skyzh committed Mar 31, 2022
1 parent b94c52b commit 6d08776
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflow-template/jobs/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ jobs:
with:
name: risingwave-release
path: .

- name: package as tar
run: |
tar -czvf risingwave-${GITHUB_REF}-unknown-linux.tar.gz risingwave
tar -czvf risingwave-${GITHUB_REF_NAME}-unknown-linux.tar.gz risingwave
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_REF_NAME: ${{ github.ref_name }}

- name: add artifact
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: risingwave-${{ github.ref }}-unknown-linux.tar.gz
asset_name: risingwave-${{ github.ref }}-unknown-linux.tar.gz
asset_path: risingwave-${{ github.ref_name }}-unknown-linux.tar.gz
asset_name: risingwave-${{ github.ref_name }}-unknown-linux.tar.gz
asset_content_type: application/tar+gzip
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -768,17 +768,17 @@ jobs:
path: .
- name: package as tar
run: |
tar -czvf risingwave-${GITHUB_REF}-unknown-linux.tar.gz risingwave
tar -czvf risingwave-${GITHUB_REF_NAME}-unknown-linux.tar.gz risingwave
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_REF_NAME: ${{ github.ref_name }}
- name: add artifact
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: risingwave-${{ github.ref }}-unknown-linux.tar.gz
asset_name: risingwave-${{ github.ref }}-unknown-linux.tar.gz
asset_path: risingwave-${{ github.ref_name }}-unknown-linux.tar.gz
asset_name: risingwave-${{ github.ref_name }}-unknown-linux.tar.gz
asset_content_type: application/tar+gzip

# ================= THIS FILE IS AUTOMATICALLY GENERATED =================
Expand Down

0 comments on commit 6d08776

Please sign in to comment.