ππ Release Documentation #2
This file contains hidden or 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: | |
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/[email protected] | |
- 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: | | |
export npm_config_build_from_source=false | |
pnpm install --no-frozen-lockfile --ignore-scripts | |
######################################################################### | |
# BUILD | |
######################################################################### | |
- name: π Build packages | |
run: pnpm build | |
- name: π Build docs | |
run: pnpm build-doc | |
################################################################### | |
# BUILD AND DEPLOY | |
################################################################### | |
- 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: "creatium" | |
directory: 'build/docs' | |
wranglerVersion: '3' | |
############################################################################### |