35 lines
694 B
YAML
35 lines
694 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 i
|
|
pnpm build
|
|
ls -la
|
|
# tar czf yacd.tar.gz ./public
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
path: ./public/*
|
|
name: yacd.tar.gz
|
|
if-no-files-found: error
|
|
|
|
- uses: actions/release-action
|
|
with:
|
|
allowUpdates: true
|
|
tag: "v*"
|
|
artifacts: "./yacd.tar.gz"
|
|
token: ${{ secrets.RELEASE_KEY }}
|