Create issue template using Github UI #126
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: Create HTML | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
convert_via_pandoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: create output directory | |
run: | | |
mkdir output | |
- uses: docker://pandoc/core:2.9 | |
with: | |
args: --output=output/index.html snirf_specification.md | |
- uses: actions/upload-artifact@master | |
with: | |
name: snirf.html | |
path: output/index.html | |
- name: Deploy | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output | |
publish_branch: gh-pages | |
force_orphan: true | |
user_name: 'github-actions[bot]' | |
user_email: 'action@github.com' | |
keep_files: false | |
commit_message: 'Update documentation' |