Skip to content

Commit

Permalink
Merge pull request #63 from philipwindecker/master
Browse files Browse the repository at this point in the history
Build: Add features for the combined release pipeline
  • Loading branch information
philipwindecker authored Mar 31, 2023
2 parents 005c949 + af86437 commit 8ca260f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 47 deletions.
3 changes: 2 additions & 1 deletion .antora/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version:
main: 'current'
master: 'current'
v(*)-antora: V$1
x-antora-v(*): V$1
v(*): V$1
V(*): V$1
# 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/")
Expand Down Expand Up @@ -55,4 +56,4 @@ nav:
# Add more items here as required.
# Recommended: One navigation file per document/repository!
# Recommended: Name your module (folder) as your document type, e.g. "standard" or "concept" or "topic-guidelines"
# Format: - modules/<module-folder-name>/<navigation-file-name>.adoc
# Format: - modules/<module-folder-name>/<navigation-file-name>.adoc
46 changes: 0 additions & 46 deletions .github/workflows/antora-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,50 +24,4 @@ jobs:
event-type: antora-build-trigger
repository: OpenSimulationInterface/osi-antora-generator
client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}'
# antora-build:
# name: Build
# runs-on: ubuntu-20.04

# services:
# kroki:
# image: yuzutech/kroki:0.15.1
# env:
# KROKI_MAX_URI_LENGTH: 8000
# KROKI_BLOCKDIAG_HOST: blockdiag
# KROKI_MERMAID_HOST: mermaid
# blockdiag:
# image: yuzutech/kroki-blockdiag:0.15.1
# mermaid:
# image: yuzutech/kroki-mermaid:0.15.1

# steps:
# - name: Checkout generator
# uses: actions/checkout@master
# with:
# repository: OpenSimulationInterface/osi-antora-generator
# path: generator
# submodules: true
# fetch-depth: 0

# - name: Modify site.yml
# working-directory: generator
# run: |
# echo "$GITHUB_REF_NAME"
# sed -i -E "s%(branches\:) \[antora\/base-antora-setup\] \# osi-documentation%\1 [$GITHUB_REF_NAME] \# osi-documentation%" site.yml
# cat site.yml
# sed -i -E "s/cd repo/cd generator/" run-build.sh
# cat run-build.sh

# - name: Generate site
# uses: docker://ghcr.io/asam-ev/project-guide-docker:4
# with:
# entrypoint: sh
# args: generator/run-build.sh

# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: antora-build
# path: ./generator/site


30 changes: 30 additions & 0 deletions .github/workflows/remote_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Remote Tagging

on:
repository_dispatch:
types: [update-tag]

permissions:
contents: write
repository-projects: write

jobs:
submodule:
name: Update submodule and create tag
runs-on: Ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.

- name: Create tag
run: git tag ${{ github.event.client_payload.tag }}

- name: GitHub Push
uses: ad-m/[email protected]
with:
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.MACHINE_USER_PAT }}
# Determines if --tags is used
tags: true

0 comments on commit 8ca260f

Please sign in to comment.