ci: apply org-wide Actions/Dependabot policy (OPS-18) (#247) #54
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
| name: Project site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - website/** | |
| - openapi.yaml | |
| - redocly.yaml | |
| - package.json | |
| - package-lock.json | |
| - scripts/api-reference.mjs | |
| - scripts/build-site.mjs | |
| - scripts/verify-site.mjs | |
| - .github/workflows/pages.yml | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 1 | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: 24.18.1 | |
| cache: npm | |
| - name: Install npm | |
| run: npm install --global --ignore-scripts npm@12.0.2 | |
| - run: npm ci | |
| - name: Build and verify static site | |
| run: | | |
| npm run site:build | |
| npm run site:verify | |
| - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 | |
| - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: dist/site | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |