yacd/.github/workflows/build.yaml
liyp 2113e36bcb
Some checks failed
Install pnpm and build / build (push) Failing after 11s
fix action
2023-04-30 16:40:40 +08:00

41 lines
948 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
# ls -la
#- uses: actions/upload-artifact@v3
#with:
#path: ./yacd.tar.gz
#name: yacd-meta
#if-no-files-found: warn
- run: ls -la
#- uses: actions/release-action@v1
#with:
#allowUpdates: true
#tag: "v*"
#artifacts: "./yacd.tar.gz"
#token: ${{ secrets.RELEASE_KEY }}
# - name: Release
#uses: https://github.com/softprops/action-gh-release@v1
#if: startsWith(github.ref, 'refs/tags/')
#with:
# files: yacd.tar.gz