Skip to content

Commit

Permalink
Add a tarball asset to the release
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneToIgnore committed Nov 27, 2024
1 parent dd2c210 commit fd568f8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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/')

0 comments on commit fd568f8

Please sign in to comment.