#29 academic-capstone: int-except/insn-list revision #275
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: Build and publish the documentation | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: Linux | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cd "$GITHUB_WORKSPACE"; make EXTERNAL_CONTAINER_IMG="$DOC_CONTAINER_IMG" | |
- name: Publish-revision | |
run: cd "$GITHUB_WORKSPACE"; rsync -av --delete --exclude='.asciidoctor/' output/ "$DOC_REV_PREFIX"/"$GITHUB_SHA"/ | |
- name: Publish-revision-by-date | |
run: ln -sfn "$DOC_REV_PREFIX"/"$GITHUB_SHA" "$DOC_REV_PREFIX"/by-date/$(date -Iseconds) | |
- name: Publish-revision-by-branch | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
run: ln -sfn "$DOC_REV_PREFIX"/"$GITHUB_SHA" "$DOC_REV_PREFIX"/by-branch/"$BRANCH_NAME" | |
- name: Publish-master | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
if: ${{ env.BRANCH_NAME == 'master' }} | |
run: ln -sfn "$DOC_REV_PREFIX"/"$GITHUB_SHA" "$DOC_TARGET" | |