Skip to content

Commit

Permalink
Merge pull request #9 from genestack/feature/ODM-11077-release
Browse files Browse the repository at this point in the history
[ODM-11077] Add release instructions
  • Loading branch information
mctep authored Jan 23, 2024
2 parents b3ac47c + bd51e6a commit 8ac21f0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 34 deletions.
65 changes: 32 additions & 33 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
name: Publish documentation version
on:
push:
branches:
- "v*.*"
- "v*.*.*"
- "develop"
push:
branches:
- "release/*.*"
- "develop"
permissions:
contents: write
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: pip install mike
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- run: mike deploy --push --update-aliases ${{ steps.extract_branch.outputs.branch }} latest
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: pip install mike
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | sed 's|release/||')"
id: extract_branch
- run: mike deploy --push --update-aliases ${{ steps.extract_branch.outputs.branch }} latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Deployment latest version is configured via Github Actions.

[Mike](https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/#usage) plugin is used for deploying versions.

To deploy a new version create a new branch with pattern `v*.*.*` (for example `v1.54.2`) and push it.
To deploy a new version create a new branch with pattern `release/*.*` (for example `release/1.54`) and push it.

A new folder will be created in `gh-pages` branch that will be available on Github Pages after some time.

0 comments on commit 8ac21f0

Please sign in to comment.