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

36 lines
694 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
ls -la
2023-04-30 11:11:47 +08:00
# tar czf yacd.tar.gz ./public
2023-04-30 11:06:11 +08:00
- uses: actions/upload-artifact@v3
with:
2023-04-30 11:11:47 +08:00
path: ./public/*
2023-04-30 11:06:11 +08:00
name: yacd.tar.gz
if-no-files-found: error
2023-04-30 11:11:47 +08:00
2023-04-30 11:12:55 +08:00
- uses: actions/release-action
2023-04-30 11:06:11 +08:00
with:
allowUpdates: true
tag: "v*"
artifacts: "./yacd.tar.gz"
token: ${{ secrets.RELEASE_KEY }}