Skip to content

Create a new release #10

Create a new release

Create a new release #10

Workflow file for this run

name: "Create a new release"
on:
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
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: |
npm ci
- name: Lint & Compile
run: |
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/')