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

42 lines
928 B
YAML
Raw Permalink Normal View History

2023-04-30 10:48:38 +08:00
name: Install pnpm and build
2023-04-30 10:21:13 +08:00
2023-04-30 16:34:36 +08:00
on: push
2023-04-30 10:21:13 +08:00
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
2023-04-30 16:32:55 +08:00
run: npm install -g pnpm
2023-04-30 10:48:38 +08:00
- 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 16:27:25 +08:00
# ls -la
2023-04-30 11:06:11 +08:00
2023-04-30 16:19:11 +08:00
#- uses: actions/upload-artifact@v3
#with:
#path: ./yacd.tar.gz
#name: yacd-meta
#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 }}
2023-04-30 16:19:11 +08:00
- name: Release
uses: https://github.com/softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: yacd.tar.gz