Skip to content

Commit 9f41333

Browse files
Updating file '.github/workflows/build-page.yml' with otterdog.
1 parent a5a67af commit 9f41333

File tree

1 file changed

+2
-72
lines changed

1 file changed

+2
-72
lines changed

.github/workflows/build-page.yml

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,94 +6,24 @@ on:
66
branches:
77
- 'main'
88
paths:
9-
- 'otterdog/*.jsonnet'
109
- 'docs/**'
1110
- 'mkdocs.yml'
1211
- '.github/workflows/build-page.yml'
1312

1413
concurrency:
1514
group: "pages"
16-
cancel-in-progress: false
15+
cancel-in-progress: true
1716

1817
permissions:
1918
contents: read
2019
pages: write
2120
id-token: write
2221

2322
jobs:
24-
generate-markdown:
25-
# do not run the workflow in the template repo itself
26-
if: ${{ !contains (github.repository, '/.eclipsefdn-template') }}
27-
runs-on: ubuntu-latest
28-
steps:
29-
- name: Checkout eclipse-csi/otterdog
30-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
31-
with:
32-
repository: eclipse-csi/otterdog
33-
path: otterdog
34-
35-
- name: Checkout EclipseFdn/otterdog-configs
36-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
37-
with:
38-
repository: EclipseFdn/otterdog-configs
39-
path: otterdog-configs
40-
41-
# checkout the HEAD ref
42-
- name: Checkout HEAD
43-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
44-
with:
45-
path: ${{ github.repository_owner }}
46-
47-
- name: Install jsonnet-bundler
48-
run: |
49-
go install -a github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected]
50-
echo $(go env GOPATH)/bin >> $GITHUB_PATH
51-
52-
- name: Install poetry
53-
run: pipx install poetry
54-
55-
- name: Setup Python
56-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
57-
with:
58-
python-version: '3.10'
59-
cache: 'poetry'
60-
61-
- name: Install dependencies with poetry
62-
run: |
63-
poetry install --only=main
64-
working-directory: otterdog
65-
66-
- name: Copy configuration from HEAD ref
67-
run: |
68-
mkdir -p orgs/${{ github.repository_owner }}
69-
cp -r ../${{ github.repository_owner }}/otterdog/* orgs/${{ github.repository_owner }}
70-
working-directory: otterdog-configs
71-
72-
- name: Generate default configuration as markdown
73-
run: ../otterdog/otterdog.sh show-default ${{ github.repository_owner }} -c otterdog.json --markdown > default.txt
74-
working-directory: otterdog-configs
75-
76-
- name: Upload generated site content
77-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
78-
with:
79-
name: generated-site
80-
path: |
81-
otterdog-configs/default.txt
82-
otterdog-configs/orgs/${{ github.repository_owner }}/vendor/otterdog-defaults/*.libsonnet
83-
8423
build-page:
8524
runs-on: ubuntu-latest
86-
needs: generate-markdown
8725
steps:
88-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
89-
- name: Download generated site content
90-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
91-
with:
92-
name: generated-site
93-
- shell: bash
94-
run: |
95-
cat default.txt >> ./docs/playground.md
96-
cp orgs/${{ github.repository_owner }}/vendor/otterdog-defaults/*.libsonnet ./docs/jsonnet/
26+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
9727
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
9828
with:
9929
python-version: 3.x

0 commit comments

Comments
 (0)