Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa-kheibary committed Feb 6, 2024
2 parents 132f059 + a903b56 commit e126203
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🚀 Build and release

on:
push:
tags:
- "*"

jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- name: ⚙️ Setup node
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: 🔃 Checkout
uses: actions/checkout@v2

- name: 🛠️ Install and build
run: |
npm install
npm i -g @vercel/ncc
npm run build
- name: Install zip 📦
uses: montudor/action-zip@v1

- name: Zip dist files 📦
run: zip -qq -r dist.zip dist

- name: Create release 📦
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.ChatGuard_PAT }}
prerelease: true
files: ./*.zip

0 comments on commit e126203

Please sign in to comment.