From 7f4cd53ad71e4f48b95dfed121884a32f36da00b 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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index 9eb7caa3..8809d0fc 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,14 @@ jobs: npm run lint npm run compile + - name: Create tarball + run: | + mkdir archive + tar -czf ./archive/vscode-eslint-${{ env.RELEASE_VERSION }}.tar.gz --exclude="archive" --exclude=".git" --exclude=".github" --exclude="**/node_modules" . + - name: Release uses: softprops/action-gh-release@v2 + with: + files: archive/vscode-eslint-${{ env.RELEASE_VERSION }}.tar.gz + tag_name: ${{ env.RELEASE_VERSION }} if: startsWith(github.ref, 'refs/tags/')