Skip to content

Merge pull request #262 from metno/issue_261 #47

Merge pull request #262 from metno/issue_261

Merge pull request #262 from metno/issue_261 #47

Workflow file for this run

name: 'html/pdf'
on:
push:
branches:
- master
paths:
- 'doc/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: create html and pdf
run: |
docker compose -f docker-compose.asciidoctor.yml up
- name: commit changed files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -f doc/mmd-specification.html
git add -f doc/mmd-specification.pdf
git commit -m "Automatic updated by GitHub Action"
- name: push code to ${{ github.ref }}
run: |
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git push "${remote_repo}" HEAD:${{ github.ref }} --follow-tags