This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
Use new opensees
Python package
#43
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: docs | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: build and deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: compas-dev/[email protected] | |
id: docs | |
with: | |
dest: deploy | |
build_to_subfolder: true | |
- name: Deploy docs | |
if: success() && steps.docs.outputs.commit_type != 'pull' | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: gh-pages | |
build_dir: deploy | |
keep_history: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
outputs: | |
commit_type: ${{ steps.docs.outputs.commit_type }} | |
current_version: ${{ steps.docs.outputs.current_version }} | |
docVersions: | |
needs: build | |
if: needs.build.outputs.commit_type == 'tag' | |
name: update doc versions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
- uses: compas-dev/[email protected] | |
with: | |
current_version: ${{ needs.build.outputs.current_version }} | |
- name: Deploy docs | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: gh-pages | |
build_dir: ./ | |
keep_history: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |