Elffuss BraidHub

kikocis/EDC public

main · 1.6 KiBRawPermalink
1#################################################################################
2# Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3#
4# See the NOTICE file(s) distributed with this work for additional
5# information regarding copyright ownership.
6#
7# This program and the accompanying materials are made available under the
8# terms of the Apache License, Version 2.0 which is available at
9# https://www.apache.org/licenses/LICENSE-2.0.
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations
15# under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18#################################################################################
19
20
21---
22name: Publish JSON-LD context
23
24on:
25 workflow_dispatch:
26 push:
27 branches: [ main ]
28 paths:
29 - 'extensions/common/json-ld/src/main/resources/document/**'
30
31jobs:
32 build:
33 runs-on: ubuntu-latest
34 permissions:
35 contents: write
36 pages: write
37 steps:
38 - uses: actions/checkout@v4
39 - name: copy contexts into public folder
40 run: |
41 mkdir -p public/context
42 cp extensions/common/json-ld/src/main/resources/document/management-context-v1.jsonld public/context/
43 - name: deploy to gh-pages
44 uses: peaceiris/actions-gh-pages@v4
45 with:
46 github_token: ${{ secrets.GITHUB_TOKEN }}
47 publish_dir: ./public
48 keep_files: true