Yacd-meta/.gitea/workflows/build.yaml

37 lines
748 B
YAML
Raw Normal View History

2023-04-30 10:48:38 +08:00
name: Install pnpm and build
2023-04-30 10:21:13 +08:00
on: [push]
jobs:
build:
runs-on: ubuntu-latest
2023-04-30 10:48:38 +08:00
2023-04-30 10:21:13 +08:00
steps:
2023-04-30 10:48:38 +08:00
- name: Checkout the code
2023-04-30 10:50:12 +08:00
uses: actions/checkout@v3
2023-04-30 10:48:38 +08:00
- name: Install pnpm
run: |
npm install -g pnpm
- name: Install dependencies and build
run: |
pnpm i
pnpm build
2023-04-30 11:38:33 +08:00
pwd
tar czf yacd.tar.gz ./public
2023-04-30 10:48:38 +08:00
ls -la
2023-04-30 11:06:11 +08:00
- uses: actions/upload-artifact@v3
with:
2023-04-30 11:38:33 +08:00
path: ./yacd.tar.gz
2023-04-30 11:26:18 +08:00
name: yacd-meta
2023-04-30 11:38:33 +08:00
if-no-files-found: warn
2023-04-30 11:33:42 +08:00
- run: ls -la
2023-04-30 11:22:56 +08:00
#- uses: actions/release-action@v1
#with:
#allowUpdates: true
#tag: "v*"
#artifacts: "./yacd.tar.gz"
#token: ${{ secrets.RELEASE_KEY }}