Update Results.yaml #43
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: publish | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v4 | |
| - run: mkdir dist | |
| - run: npx @redocly/cli build-docs BuildingCodesAndRules/BuildingCodesAndRules.yaml | |
| - run: mv redoc-static.html dist/buildingcodesandrules.html | |
| - run: npx @redocly/cli build-docs Results/Results.yaml | |
| - run: mv redoc-static.html dist/results.html | |
| - run: npx @redocly/cli build-docs Data/Data.yaml | |
| - run: mv redoc-static.html dist/data.html | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v1 | |
| with: | |
| path: './dist' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v1 |