yacd/.github/workflows/build.yaml

31 lines
589 B
YAML
Raw Normal View History

2023-04-30 16:37:23 +08:00
name: Install pnpm and build
on: push
2023-04-29 22:00:31 +08:00
jobs:
2023-04-30 16:37:23 +08:00
build:
2023-04-29 22:00:31 +08:00
runs-on: ubuntu-latest
2023-04-30 16:37:23 +08:00
2023-04-29 22:00:31 +08:00
steps:
2023-04-30 16:37:23 +08:00
- name: Checkout the code
uses: actions/checkout@v3
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies and build
2023-04-30 16:46:50 +08:00
run: |
2023-04-30 16:55:54 +08:00
pnpm install --no-frozen-lockfile
2023-04-30 16:37:23 +08:00
pnpm build
pwd
tar czf yacd.tar.gz ./public
2023-04-30 16:46:50 +08:00
- name: Test
run: ls -la
2023-04-30 16:44:18 +08:00
2023-04-30 16:42:29 +08:00
- name: Release
2023-04-30 17:08:12 +08:00
uses: actions/release-action@latest
2023-04-30 17:03:43 +08:00
#if: startsWith(github.ref, 'refs/tags/')
2023-04-30 16:54:53 +08:00
with:
files: yacd.tar.gz
2023-04-30 16:42:29 +08:00