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 7f4cd53
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 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,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/')

0 comments on commit 7f4cd53

Please sign in to comment.