From 3c39b210bdda99ebf157c1db7cdc7cf7eb654764 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Sat, 15 Jun 2024 13:07:57 +0530 Subject: [PATCH] remove "v", remove upload source --- .github/workflows/release.yml | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d27d944..cc21c38 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -25,7 +25,7 @@ jobs: - name: Print meta run: | - echo $GITHUB_REF_NAME + echo $RELEASE_VERSION zig version zig env @@ -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