From fd568f8d0b2d5e01bf304c19fcec203318c8f938 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 27 Nov 2024 10:59:59 +0200 Subject: [PATCH] Add a tarball asset to the release --- .github/workflows/release_tag.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index 9eb7caa3..3153ef4a 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -9,7 +9,12 @@ jobs: steps: - uses: actions/checkout@v2 with: - ref: ${{ inputs.release_tag }} + ref: ${{ github.ref_name }} + + - name: Set release version + run: | + RELEASE_VERSION=${GITHUB_REF_NAME#release/} + echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV - name: Install dependencies run: | @@ -20,6 +25,12 @@ jobs: npm run lint npm run compile + - name: Create tarball + run: tar -czf vscode-eslint-${{ env.RELEASE_VERSION }}.tar.gz --exclude="vscode-eslint-${{ env.RELEASE_VERSION }}.tar.gz" --warning=no-file-changed . + - name: Release uses: softprops/action-gh-release@v2 + with: + files: vscode-eslint-${{ env.RELEASE_VERSION }}.tar.gz + tag_name: ${{ env.RELEASE_VERSION }} if: startsWith(github.ref, 'refs/tags/')