Skip to content

Commit

Permalink
ci: revert manual bump for v1 and add docs deploy from main
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Feb 14, 2024
1 parent 1c927a3 commit faa1468
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
8 changes: 3 additions & 5 deletions .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faa1468

Please sign in to comment.