Skip to content

Refactor/grid (#130) #16

Refactor/grid (#130)

Refactor/grid (#130) #16

name: Build and Release
on:
push:
tags:
- "v*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install Dependencies
run: |
npm install -g pnpm
pnpm install
- name: Build
run: pnpm run build:self-host
- name: Archive Production Artifact
run: |
cd dist
zip -r ../build-${{ github.ref_name }}.zip .
- name: Create and Upload Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
files: build-${{ github.ref_name }}.zip
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false