Change build image #54
Workflow file for this run
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: 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' |