documentation publish failing #31
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: | |
pull_request: | |
branches: ["main"] | |
env: | |
NODE_VERSION: 18.x | |
jobs: | |
# publish: | |
# name: Publish to NPM | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version: ${{ env.NODE_VERSION }} | |
# registry-url: https://registry.npmjs.org/ | |
# cache: npm | |
# - run: npm ci | |
# - run: npm run build ngx-charts-on-fhir | |
# - run: npm publish dist/libs/ngx-charts-on-fhir/ --access public | |
# env: | |
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
build-docs: | |
name: Build Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- run: npm ci | |
- run: npm run build documentation -- --base-href=/charts-on-fhir/ | |
- run: cp dist/apps/documentation/browser/index.html dist/apps/documentation/browser/404.html # Needed for Angular routing | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dist/apps/documentation | |
deploy-docs: | |
name: Publish Documentation | |
needs: build-docs | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |