fix(stacks.web): use separate origin for blog redirect + specify beha… #129
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
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". | |
name: static | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
concurrency: pages | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
env: | |
NX_NON_NATIVE_HASHER: "true" | |
NX_BRANCH: ${{ github.event.number }} | |
NX_RUN_GROUP: ${{ github.run_id }} | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
CI: "true" | |
GIGET_AUTH: ${{ secrets.GH_CONFIGS_RO_PAT }} | |
CCU_CONFIGS_DECRYPT: "false" | |
SKIP_SYNTH: "1" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/[email protected] | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Generate Docs | |
run: pnpm docgen | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: docs | |
- name: Deploy to Github Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |