30 lines
585 B
YAML
30 lines
585 B
YAML
name: Install pnpm and build
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install pnpm
|
|
run: npm install -g pnpm
|
|
|
|
- name: Install dependencies and build
|
|
run: |
|
|
pnpm install --no-frozen-lockfile
|
|
pnpm build
|
|
pwd
|
|
tar czf yacd.tar.gz ./public
|
|
- name: Test
|
|
run: ls -la
|
|
|
|
- name: Release
|
|
uses: cerc-io/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
files: yacd.tar.gz
|
|
|