From faa1468888e8ac525b994c6ed2b39247527b89c1 Mon Sep 17 00:00:00 2001 From: Paul Delafosse Date: Wed, 14 Feb 2024 22:18:01 +0100 Subject: [PATCH] ci: revert manual bump for v1 and add docs deploy from main --- .github/workflows/CD.yml | 23 +++++++++++++++++++++++ .github/workflows/Release.yaml | 8 +++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 54e304e..cd76853 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -112,4 +112,27 @@ jobs: tag: ${{ github.ref_name }} asset_name: onagre-${{ github.ref_name }}-armv7-unknown-linux-musleabihf.tar.gz + update_pages: + name: Deploy pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - 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