Skip to content

Change build image

Change build image #54

name: Generate and submit documentation
on:
push:
branches:
- fix/generate-documentation-workflow
jobs:
generate-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build the Docker image
run: docker build -f docker/Dockerfile --target claasp-base -t claasp .
- name: Generate documentation
run: docker run --rm -v $PWD:/home/sage/tii-claasp claasp make doc
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.AUTHORIZATION_TOKEN }}
message: "Update documentation"
- name: Update develop branch
uses: morbalint/git-merge-action@v1
with:
target: 'develop'
source: 'main'
token: ${{ secrets.AUTHORIZATION_TOKEN }}
strategy_options: 'ours'