yacd/.github/workflows/build.yaml
Workflow config file is invalid. Please check your config file: yaml: line 25: mapping values are not allowed in this context
2023-04-30 16:44:18 +08:00

29 lines
569 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
pwd
tar czf yacd.tar.gz ./public
- run: ls -la
- name: Release
uses: https://github.com/softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/')
with:
files: yacd.tar.gz