add accessibility certification page #94
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: Friendly Docs | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.x | |
| cache: "npm" | |
| cache-dependency-path: "./package-lock.json" | |
| - name: Install dependencies and build | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Deploy to BunnyCDN | |
| uses: ayeressian/[email protected] | |
| with: | |
| source: "build" | |
| storageZoneName: "${{ secrets.STORAGE_NAME }}" | |
| storagePassword: "${{ secrets.STORAGE_PASSWORD }}" | |
| accessKey: "${{ secrets.STORAGE_KEY }}" | |
| pullZoneId: "${{ secrets.ZONE_ID }}" | |
| upload: "true" | |
| remove: "true" | |
| purgePullZone: "true" |