Initial eMASS API specification v3.12 implementation (#15) #77
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
# For testing use the PR name for 'branches:' - once done testing revert the 'branches:' name to main | |
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
# pull_request: | |
# branches: [ main ] | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
name: Copy Markdown Files to gh_pages | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Build Deploment Folder 🔧 | |
run: | | |
sudo mkdir -p /publish | |
sudo mkdir -p /publish/docs | |
sudo mkdir -p /publish/images | |
sudo cp README.md /publish | |
sudo cp _config.yml /publish/_config.yml | |
sudo cp -R ./images /publish | |
sudo cp -R ./docs/redoc /publish/docs/redoc | |
sudo cp -R ./docs/renderer /publish/docs/renderer | |
sudo cp ./docs/developers.md /publish/docs/developers.md | |
sudo cp ./docs/eMASSRestOpenApi.yaml /publish/docs/eMASSRestOpenApi.yaml | |
sudo cp ./docs/eMASS_API_Documentation.pdf /publish/docs/eMASS_API_Documentation.pdf | |
- name: Deploy Markdown Files 🚀 | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: /publish | |
destination_dir: . | |
enable_jekyll: true |