Skip to content

Commit

Permalink
chore: create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ngseke committed Nov 22, 2023
1 parent 0c65f68 commit 179bb54
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- uses: pnpm/action-setup@v2.2.2
with:
version: 8.6.10

- uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Dependencies
run: pnpm i

- name: Run Lints
run: pnpm run lint

- name: Build
run: pnpm run build

- name: Compress Dist Folder
run: zip -r build.zip dist

- name: Get Tag Name
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Create Release
id: create_release
uses: ncipollo/release-action@v1.10.0
with:
tag: ${{ github.ref }}
name: ${{ env.TAG }}
draft: true
omitDraftDuringUpdate: true
artifacts: build.zip

0 comments on commit 179bb54

Please sign in to comment.