Automated documentation.yml running on git tag
For release and playtest tags.
This commit is contained in:
14
.github/workflows/documentation.yml
vendored
14
.github/workflows/documentation.yml
vendored
@@ -1,6 +1,8 @@
|
|||||||
name: Deploy Documentation
|
name: Deploy Documentation
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
tags: [ 'release-*', 'playtest-*' ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
@@ -70,9 +72,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Prepare environment variables
|
- name: Prepare environment variables
|
||||||
run: |
|
run: |
|
||||||
VERSION=`echo "${{ github.event.inputs.tag }}" | cut -d"-" -f1`
|
if [ "${{ github.event_name }}" = "push" ]; then
|
||||||
echo "GIT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
VERSION=`echo "${GITHUB_REF#refs/tags/}" | cut -d"-" -f1`
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
VERSION=`echo "${{ github.event.inputs.tag }}" | cut -d"-" -f1`
|
||||||
|
echo "GIT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user