ci: fix semantic release #4
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: IG Publisher to Github Pages | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main or master branch | |
push: | |
branches: | |
- main | |
- master | |
- staging | |
pull_request: | |
branches: | |
- main | |
- master | |
- staging | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run-publisher: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Run the IG publisher | |
uses: docker://hl7fhir/ig-publisher-base:latest | |
with: | |
args: ./scripts/run-ig-publisher.sh | |
# deploy implementation guide to github pages | |
- name: Deploy | |
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output | |
force_orphan: true |