release: release v2.0.3 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- run: npx conventional-github-releaser -p angular | |
env: | |
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.TOOL_HELPER_GITHUB_TOKEN}} | |
push-to-gh-pages: | |
needs: [release] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: use Node.js 18 | |
uses: actions/[email protected] | |
with: | |
node-version: '18.x' | |
- name: Set SSH environment | |
env: | |
DOCS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan github.com > ~/.ssh/known_hosts | |
chmod 700 ~/.ssh && chmod 600 ~/.ssh/* | |
git config --local user.email "[email protected]" | |
git config --local user.name "kailong321200875" | |
- name: Build github | |
run: | | |
pnpm install --no-frozen-lockfile | |
pnpm run doc | |
- name: Deploy github | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{secrets.ACTIONS_DEPLOY_KEY}} | |
publish_branch: gh-pages | |
publish_dir: ./docs | |
force_orphan: true |