Skip to content

Commit

Permalink
Merge pull request #362 from LucienShui/feature/version_tar_name
Browse files Browse the repository at this point in the history
Add version in tar
  • Loading branch information
LucienShui authored Mar 13, 2021
2 parents ceb6db6 + cdb342b commit a5c47ba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/upload-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ jobs:
run: |
GH_TOKEN=${{ secrets.PRIVATE_TOKEN }} bash .github/shell/build_and_update_cdn.sh
- name: Release Version
id: release_version
run: |
echo ::set-output name=tag::$(echo "${GITHUB_REF}" | sed -e "s/refs\/tags\///g" | sed -E "s/release-v?([0-9]+)\.([0-9]+)\.([0-9]+)(-[a-zA-Z]+(\.[0-9]+)?)?/\1.\2.\3\4/g")
- name: gzip
run: |
tar -czvf pasteme.tar.gz pasteme
tar -czvf pasteme-${{ steps.release_version.outputs.tag }}-frontend.tar.gz pasteme
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: pasteme.tar.gz application/octet-stream
args: pasteme-${{ steps.release_version.outputs.tag }}-frontend.tar.gz application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release Version
id: release_version
run: |
echo ::set-output name=tag::$(echo "${GITHUB_REF}" | sed -e "s/refs\/tags\///g" | sed -E "s/release-v?([0-9]+)\.([0-9]+)\.([0-9]+)(-[a-zA-Z]+(\.[0-9]+)?)?/\1.\2.\3\4/g")
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

Expand Down

0 comments on commit a5c47ba

Please sign in to comment.