mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Get the current tag with fallback to 1.0.0
Signed-off-by: Philippe Leprince <philippe@ynput.io>
This commit is contained in:
parent
b5006abc8b
commit
71a5a46030
1 changed files with 8 additions and 22 deletions
30
.github/workflows/deploy_mkdocs.yml
vendored
30
.github/workflows/deploy_mkdocs.yml
vendored
|
|
@ -12,9 +12,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
default: "main"
|
||||
tag:
|
||||
type: string
|
||||
required: true
|
||||
secrets:
|
||||
token:
|
||||
required: true
|
||||
|
|
@ -29,15 +26,6 @@ env:
|
|||
GH_EMAIL: ${{ secrets.email || secrets.CI_EMAIL }}
|
||||
|
||||
jobs:
|
||||
|
||||
# verify-latest-release:
|
||||
# uses: ynput/ops-repo-automation/.github/workflows/verify_latest_release.yml@main
|
||||
# with:
|
||||
# repo: ${{ github.repository }}
|
||||
# expect_release: true
|
||||
# secrets:
|
||||
# gh_token: ${{ secrets.token }}
|
||||
|
||||
verify-repo-secrets:
|
||||
uses: ynput/ops-repo-automation/.github/workflows/verify_secrets.yml@main
|
||||
with:
|
||||
|
|
@ -47,14 +35,6 @@ jobs:
|
|||
gh_user: ${{ secrets.user }}
|
||||
gh_email: ${{ secrets.email }}
|
||||
|
||||
# verify-repo-vars:
|
||||
# uses: ynput/ops-repo-automation/.github/workflows/verify_variables.yml@main
|
||||
# with:
|
||||
# variables: "MAIN_BRANCH,MINOR_BUMP_LABEL,PATCH_BUMP_LABEL,PROJECT_NAME"
|
||||
# repo: ${{ github.repository }}
|
||||
# secrets:
|
||||
# gh_token: ${{ secrets.token }}
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
@ -71,6 +51,12 @@ jobs:
|
|||
git config --global user.name "${{ secrets.user || secrets.CI_USER }}"
|
||||
git config --global user.email "${{ secrets.email || secrets.CI_EMAIL }}"
|
||||
|
||||
- name: Get current tag
|
||||
id: git_tag
|
||||
uses: "devops-actions/action-get-tag@v1.0.3"
|
||||
with:
|
||||
default: 1.0.0
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
|
@ -80,5 +66,5 @@ jobs:
|
|||
run: |
|
||||
python3 -m pip install -r ./docs/mkdocs_requirements.txt
|
||||
|
||||
- name: Mike deploy ${{ inputs.tag }}
|
||||
run: mike deploy --update-aliases ${{ inputs.tag }} latest
|
||||
- name: Mike deploy ${{ steps.git_tag.outputs.tag }}
|
||||
run: mike deploy --update-aliases ${{ steps.git_tag.outputs.tag }} latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue