Automated documentation.yml running on bleed merge
This commit is contained in:
14
.github/workflows/documentation.yml
vendored
14
.github/workflows/documentation.yml
vendored
@@ -2,6 +2,7 @@ name: Deploy Documentation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ bleed ]
|
||||||
tags: [ 'release-*', 'playtest-*' ]
|
tags: [ 'release-*', 'playtest-*' ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -73,9 +74,14 @@ jobs:
|
|||||||
- name: Prepare environment variables
|
- name: Prepare environment variables
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "push" ]; then
|
if [ "${{ github.event_name }}" = "push" ]; then
|
||||||
VERSION=`echo "${GITHUB_REF#refs/tags/}" | cut -d"-" -f1`
|
if [ "${{ github.ref_type }}" = "tag" ]; then
|
||||||
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $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
|
||||||
|
echo "GIT_TAG=bleed" >> $GITHUB_ENV
|
||||||
|
echo "VERSION=bleed" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
VERSION=`echo "${{ github.event.inputs.tag }}" | cut -d"-" -f1`
|
VERSION=`echo "${{ github.event.inputs.tag }}" | cut -d"-" -f1`
|
||||||
echo "GIT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
echo "GIT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
||||||
@@ -96,7 +102,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make all
|
make all
|
||||||
|
|
||||||
# VERSION is release/playtest - the name of the target branch.
|
# VERSION is release/playtest/bleed - the name of the target branch.
|
||||||
- name: Clone docs.openra.net
|
- name: Clone docs.openra.net
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user