name: Build Project on: push: branches: - master jobs: build: runs-on: docker steps: - name: Checkout repository uses: actions/checkout@v2 - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: '18' # or specify the version you need # - name: Install pnpm # run: npm i -g pnpm hexo # - name: Install dependencies # run: pnpm install # - name: hexo clean # run: hexo cl # - name: hexo generate # run: hexo g # - name: build algolia search index # run: pnpm run search - name: move dist assets to host run: pwd