-
Notifications
You must be signed in to change notification settings - Fork 41
44 lines (37 loc) · 984 Bytes
/
docs.yml
File metadata and controls
44 lines (37 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Docs
on:
push:
branches:
- master
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
setup:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.variables.outputs.version }}
ref: ${{ steps.variables.outputs.ref }}
steps:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v5
- name: Set output variables
id: variables
run: |
VERSION="${GITHUB_REF_NAME}"
if [[ $VERSION =~ ^v[0-9].* ]]; then
VERSION=${VERSION#"v"}
fi
echo "VERSION: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
REF="${GITHUB_REF_POINT}"
echo "REF: ${REF}"
echo "ref=${REF}" >> $GITHUB_OUTPUT
build-and-deploy:
uses: ./.github/workflows/build-and-deploy-docs.yml
with:
version: ${{ needs.setup.outputs.version }}
ref: ${{ needs.setup.outputs.ref }}
needs:
- setup