Skip to content

Avoid checkout gh-pages #5

Avoid checkout gh-pages

Avoid checkout gh-pages #5

Workflow file for this run

name: Push versions.json
on:
push:
branches:
- "**"
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
update-doc-versions:
runs-on: ubuntu-latest
steps:
- name: Generate versions.json
shell: bash
run: |
mkdir versions_folder
echo ["main", "0.1.19", "0.1.18", "0.1.12", "0.1.11"] > versions_folder/versions.json
- name: Commit versions.json
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: versions_folder # The folder the action should deploy.
target-folder: / # The folder the action should deploy to.
commit-message: publish documentation
single-commit: true
clean: false