PRSTMS-4898 Fix multiple body parameter issue (#51) #10
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: "Publish Parasut API Docs to GitHub Pages" | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm ci | |
- run: npm run build | |
- name: Compress artifact | |
run: | | |
chmod -c -R +rX "web_deploy" | while read line; do | |
echo "::warning title=Invalid file permissions automatically fixed::$line" | |
done | |
tar \ | |
--dereference \ | |
--directory "web_deploy" \ | |
-cvf "artifact.tar" \ | |
. | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'github-pages' | |
path: artifact.tar | |
retention-days: 1 | |
if-no-files-found: error | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
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@v2 |