Skip to content

Commit 8ca260f

Browse files
Merge pull request #63 from philipwindecker/master
Build: Add features for the combined release pipeline
2 parents 005c949 + af86437 commit 8ca260f

File tree

3 files changed

+32
-47
lines changed

3 files changed

+32
-47
lines changed

.antora/antora.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version:
77
main: 'current'
88
master: 'current'
99
v(*)-antora: V$1
10+
x-antora-v(*): V$1
1011
v(*): V$1
1112
V(*): V$1
1213
# Update version number accordingly. This is the version for any other activated branch (branch must be added in the generator site.yml!). Schema = 0.0.x-<branch-name> (only works for branches starting with "feature/")
@@ -55,4 +56,4 @@ nav:
5556
# Add more items here as required.
5657
# Recommended: One navigation file per document/repository!
5758
# Recommended: Name your module (folder) as your document type, e.g. "standard" or "concept" or "topic-guidelines"
58-
# Format: - modules/<module-folder-name>/<navigation-file-name>.adoc
59+
# Format: - modules/<module-folder-name>/<navigation-file-name>.adoc

.github/workflows/antora-build.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,4 @@ jobs:
2424
event-type: antora-build-trigger
2525
repository: OpenSimulationInterface/osi-antora-generator
2626
client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}'
27-
# antora-build:
28-
# name: Build
29-
# runs-on: ubuntu-20.04
30-
31-
# services:
32-
# kroki:
33-
# image: yuzutech/kroki:0.15.1
34-
# env:
35-
# KROKI_MAX_URI_LENGTH: 8000
36-
# KROKI_BLOCKDIAG_HOST: blockdiag
37-
# KROKI_MERMAID_HOST: mermaid
38-
# blockdiag:
39-
# image: yuzutech/kroki-blockdiag:0.15.1
40-
# mermaid:
41-
# image: yuzutech/kroki-mermaid:0.15.1
42-
43-
# steps:
44-
# - name: Checkout generator
45-
# uses: actions/checkout@master
46-
# with:
47-
# repository: OpenSimulationInterface/osi-antora-generator
48-
# path: generator
49-
# submodules: true
50-
# fetch-depth: 0
51-
52-
# - name: Modify site.yml
53-
# working-directory: generator
54-
# run: |
55-
# echo "$GITHUB_REF_NAME"
56-
# sed -i -E "s%(branches\:) \[antora\/base-antora-setup\] \# osi-documentation%\1 [$GITHUB_REF_NAME] \# osi-documentation%" site.yml
57-
# cat site.yml
58-
# sed -i -E "s/cd repo/cd generator/" run-build.sh
59-
# cat run-build.sh
6027

61-
# - name: Generate site
62-
# uses: docker://ghcr.io/asam-ev/project-guide-docker:4
63-
# with:
64-
# entrypoint: sh
65-
# args: generator/run-build.sh
66-
67-
# - name: Upload artifact
68-
# uses: actions/upload-artifact@v3
69-
# with:
70-
# name: antora-build
71-
# path: ./generator/site
72-
73-

.github/workflows/remote_release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Remote Tagging
2+
3+
on:
4+
repository_dispatch:
5+
types: [update-tag]
6+
7+
permissions:
8+
contents: write
9+
repository-projects: write
10+
11+
jobs:
12+
submodule:
13+
name: Update submodule and create tag
14+
runs-on: Ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
20+
21+
- name: Create tag
22+
run: git tag ${{ github.event.client_payload.tag }}
23+
24+
- name: GitHub Push
25+
uses: ad-m/[email protected]
26+
with:
27+
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
28+
github_token: ${{ secrets.MACHINE_USER_PAT }}
29+
# Determines if --tags is used
30+
tags: true

0 commit comments

Comments
 (0)