Skip to content

Commit

Permalink
Merge pull request #124 from asam-ev/remove-unnecessary-build-steps
Browse files Browse the repository at this point in the history
Remove unnecessary build steps
  • Loading branch information
ClemensLinnhoff authored Sep 30, 2024
2 parents 3fcd049 + 41ceecf commit a3ecbde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/antora-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,6 @@ jobs:
fetch-depth: 0 # test if depth in fetch history is required
submodules: recursive

- name: Checkout documentation
if: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.head_ref }}
uses: actions/checkout@v4
with:
repository: asam-ev/OpenMATERIAL
path: repo #osi-documentation
fetch-depth: 0 # test if depth in fetch history is required

- name: Apply dispatch information
if: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.head_ref }}
working-directory: repo
run: |
SRC=${{ github.event.client_payload.src }}
IFS="/"
SRC_REPO=($SRC)
unset IFS
SRC_REPO=${SRC_REPO[1]}
HEAD_REF=${{ github.event.client_payload.head_ref }}
echo Branch build for ${HEAD_REF} in ${SRC_REPO}
sed -i -r "s|\[(.*)\] # o|[\1,HEAD] # ${SRC_REPO} # o|g" site.yml
sed -i -r "s|(- url: .*# retrieve content from remote)|# \1|g" site.yml
sed -i -r "s|# (- url: .*# retrieve content locally)|\1|g" site.yml
echo Checking out the target branch
cd OpenMATERIAL
git checkout ${HEAD_REF} 2>/dev/null || git checkout -b ${HEAD_REF}
cd ..
- name: Generate AsciiDoc from JSON
working-directory: repo/scripts
run: |
Expand Down
2 changes: 1 addition & 1 deletion content/material/material-index.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= Material

* xref:material/introduction.adoc[leveloffset=+1]
* xref:material/fileformat.adoc[leveloffset=+1]
* xref:material/file-format.adoc[leveloffset=+1]
* xref:material/metadata.adoc[leveloffset=+1]
* xref:material/material-properties.adoc[leveloffset=+1]
* xref:material/lookup-tables.adoc[leveloffset=+1]

0 comments on commit a3ecbde

Please sign in to comment.