🚀📚 Release Documentation #12
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
############################################################################### | |
# RELEASE DOCS | |
############################################################################### | |
name: 🚀📚 Release Documentation | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Set number for release version' | |
type: string | |
required: true | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
############################################################################### | |
# JOBS | |
############################################################################### | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
UPDATED_VERSION: ${{ github.event.inputs.version }} | |
steps: | |
######################################################################### | |
# INIT | |
######################################################################### | |
- name: ⬇️🛑 Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
- name: ⬇️🛎 Checkout | |
uses: actions/checkout@v4 | |
- name: ⬇️🥡 Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: ⬇️🟢 Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: ⬇️📦 Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
################################################################### | |
# BUILD AND DEPLOY | |
################################################################### | |
- name: 🏗 Build package | |
run: pnpm build:docs | |
- name: 🌥 Deploy in cloudflare pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
projectName: "backan" | |
directory: 'packages/docs/dist' | |
wranglerVersion: '3' | |
############################################################################### |