Skip to content

Commit

Permalink
More actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ELepolt committed Nov 19, 2023
1 parent 8c499d3 commit 5703990
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@ jobs:
node-version: '20.x'
- run: npm i -g @redocly/cli@latest
- run: redocly build-docs swagger/nhl.json --output=docs/index.html
- name: Deploy GitHub Pages site
uses: actions/[email protected]
- name: Upload GitHub Pages artifact
uses: actions/[email protected]

# Deploy job
deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

2 changes: 1 addition & 1 deletion swagger/nhl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "NHL API",
"version": "1.0.1",
"version": "1.0.2",
"description": "NHL API for the new version. Special thanks to [dword4](https://gitlab.com/dword4/nhlapi) and [openapi-devtools](https://github.com/AndrewWalsh/openapi-devtools)."
},
"paths": {
Expand Down

0 comments on commit 5703990

Please sign in to comment.