Skip to content

Commit

Permalink
remove "v", remove upload source
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Jun 15, 2024
1 parent 6d20df2 commit 3c39b21
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v4

- name: Set release version
run: echo "RELEASE_VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
Expand All @@ -25,7 +25,7 @@ jobs:

- name: Print meta
run: |
echo $GITHUB_REF_NAME
echo $RELEASE_VERSION
zig version
zig env
Expand Down Expand Up @@ -91,30 +91,3 @@ jobs:
retention-days: 3
overwrite: true
if-no-files-found: error

upload-source:
name: Upload Source
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Set release version
run: echo "RELEASE_VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV

- name: Prepare source code
run: |
cd ..
tar -czvf v${{ env.RELEASE_VERSION }}.tar.gz ${{ github.event.repository.name }}
mv v${{ env.RELEASE_VERSION }}.tar.gz ${{ github.event.repository.name }}
- name: Upload for release
uses: svenstaro/upload-release-action@v2
with:
file: v${{ env.RELEASE_VERSION }}.tar.gz
file_glob: true
overwrite: true
tag: ${{ github.ref }}
release_name: 'Release v${{ env.RELEASE_VERSION }}'
repo_token: ${{ secrets.RELEASE_TOKEN }}
draft: true

0 comments on commit 3c39b21

Please sign in to comment.