diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..258301b4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release Workflow + +on: + push: + tags: + - 'v*.*.*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: yarn install + + - name: Build + run: yarn build + + - name: Package + uses: vimtor/action-zip@v1.1 + with: + files: dist/ + dest: chathub.zip + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: chathub.zip