CI: Name Docs zip based on commit/tag

This commit is contained in:
Matt Gajownik 2022-11-19 14:16:47 +11:00
parent 90f7a08237
commit ea2cbb6f65

View file

@ -14,6 +14,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Environment
id: setup
run: |
echo "commitHash=$(git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Bump Version Number
shell: bash
if: github.event_name == 'push'
@ -45,7 +49,7 @@ jobs:
pre_build_commands: 'pip install -Iv sphinx==5.1.1'
- uses: actions/upload-artifact@v3
with:
name: OBS Studio Documentation (HTML)
name: 'OBS Studio Docs ${{ steps.setup.outputs.commitHash }}'
path: |
${{ runner.temp }}/_github_home/_build
!${{ runner.temp }}/_github_home/_build/.doctrees