diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 54e304e..4be6827 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -112,4 +112,20 @@ jobs: tag: ${{ github.ref_name }} asset_name: onagre-${{ github.ref_name }}-armv7-unknown-linux-musleabihf.tar.gz - + update_pages: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Build VuePress site + working-directory: ./docs/website + run: pnpm install && pnpm docs:build + + - name: Deploy to GitHub Pages + uses: crazy-max/ghaction-github-pages@v4 + with: + target_branch: gh-pages + build_dir: docs/website/src/.vuepress/dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/Release.yaml b/.github/workflows/Release.yaml index 772003d..4cdb9e8 100644 --- a/.github/workflows/Release.yaml +++ b/.github/workflows/Release.yaml @@ -34,18 +34,16 @@ jobs: check-latest-tag-only: true git-user: 'github-actions' git-user-email: 'github-actions@github.com' - - - name: Create V1 (remove me after v1.0.0) - run: cog bump --version 1.0.0 + release: true - name: Generate Changelog - run: cog changelog --at 1.0.0 -t full_hash > GITHUB_CHANGELOG.md + run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md - name: Upload github release uses: softprops/action-gh-release@v1 with: body_path: GITHUB_CHANGELOG.md - tag_name: 1.0.0 + tag_name: ${{ steps.release.outputs.version }} - name: Setup pnpm uses: pnpm/action-setup@v2