Skip to content

Commit d49ea9a

Browse files
Benedikt Mennebmenne-dspace
authored andcommitted
Prepare build-ls-bus pipeline for release creation
1 parent c40f1eb commit d49ea9a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build-ls-bus.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build Layered Standard Network Communication
33
on:
44
push:
55
branches-ignore: [ 'temp/*' ]
6+
tags:
7+
- '*'
68
pull_request:
79
branches: [ main ]
810

@@ -15,12 +17,20 @@ jobs:
1517
steps:
1618
- name: checkout
1719
uses: actions/checkout@v3
20+
- name: Generate revnumber
21+
run: |
22+
[[ $GITHUB_REF_TYPE == "tag" ]] && REVNUMBER=${GITHUB_REF:11} || REVNUMBER=${GITHUB_SHA:0:7}
23+
echo GITHUB_SHA: $GITHUB_SHA
24+
echo GITHUB_REF_TYPE: $GITHUB_REF_TYPE
25+
echo GITHUB_REF: $GITHUB_REF
26+
echo REVNUMBER: $REVNUMBER
27+
echo "REVNUMBER=$REVNUMBER" >> $GITHUB_ENV
1828
- name: prepare
1929
run: mkdir build
2030
- name: build layered standard Network Communication
2131
uses: avattathil/asciidoctor-action@master
2232
with:
23-
program: "asciidoctor -D build --backend=html5 --attribute=revnumber=${GITHUB_REF#refs/heads/}-$GITHUB_SHA --attribute=revdate=$(date +%F) docs/index.adoc"
33+
program: "asciidoctor -D build --backend=html5 --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc"
2434
- name: copy images and examples
2535
run: tar cfC - docs images examples | tar xfC - build
2636
- name: archive layered standard Network Communication

0 commit comments

Comments
 (0)