Skip to content

ci: create main workflow #1

ci: create main workflow

ci: create main workflow #1

Workflow file for this run

name: CI build
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: DerYeger/pnpm-setup-action@master
with:
node-version: latest
- name: Build
run: pnpm build
- name: Compress action step
uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ./
files: |
./build
outPath: build.tar.gz
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: |
build.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build.tar.gz