Skip to content

Commit 2a97c4d

Browse files
authored
Merge 322549a into 2949e32
2 parents 2949e32 + 322549a commit 2a97c4d

File tree

107 files changed

+6541
-1093
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+6541
-1093
lines changed

.github/workflows/azure-crossplane-mongodb-e2e.yml

-81
This file was deleted.

.github/workflows/build-docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy gh-pages
1+
name: Build docs
22

33
on:
44
pull_request:
@@ -18,12 +18,12 @@ jobs:
1818
fetch-depth: '0'
1919

2020
- name: Setup Python
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: 3.x
2424

2525
- name: Install Python requirements
2626
run: pip install -r requirements.txt
2727

28-
- name: Deploy GitHub Pages
28+
- name: Build documentation
2929
run: mkdocs build

.github/workflows/crossplane-main.yml

-42
This file was deleted.

.github/workflows/crossplane-prepublish.yml

-43
This file was deleted.

.github/workflows/crossplane-publish.yml

-70
This file was deleted.

.github/workflows/publish-docs.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: Deploy gh-pages
1+
name: Publish docs
2+
3+
permissions:
4+
pages: write
5+
contents: write
26

37
on:
48
push:
@@ -18,12 +22,12 @@ jobs:
1822
fetch-depth: '0'
1923

2024
- name: Setup Python
21-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v4
2226
with:
2327
python-version: 3.x
2428

2529
- name: Install Python requirements
2630
run: pip install -r requirements.txt
2731

28-
- name: Deploy GitHub Pages
32+
- name: Build documentation and deploy GitHub Pages
2933
run: mkdocs gh-deploy -b gh-pages
+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Publish packages
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
permissions:
8+
packages: write
9+
contents: write
10+
pull-requests: write
11+
12+
on:
13+
push:
14+
branches:
15+
- main
16+
- develop
17+
paths:
18+
- 'packages/*/*/*/**'
19+
20+
pull_request:
21+
types: [opened, ready_for_review, reopened, synchronize]
22+
branches:
23+
- main
24+
paths:
25+
- 'packages/*/*/*/**'
26+
27+
jobs:
28+
29+
list-packages:
30+
uses: ./.github/workflows/reusable-list-packages.yml
31+
with:
32+
basedir: packages
33+
34+
bump-version:
35+
needs:
36+
- list-packages
37+
if: needs.list-packages.outputs.crossplane_publish == 'true' || needs.list-packages.outputs.carvel_publish == 'true'
38+
uses: ./.github/workflows/reusable-bump-version.yml
39+
40+
crossplane-publish:
41+
needs:
42+
- bump-version
43+
- list-packages
44+
if: needs.list-packages.outputs.crossplane_publish == 'true'
45+
strategy:
46+
matrix: ${{ fromJson(needs.list-packages.outputs.crossplane) }}
47+
uses: ./.github/workflows/reusable-crossplane-publish.yml
48+
with:
49+
package_name: ${{ matrix.name }}
50+
package_provider: ${{ matrix.provider }}
51+
package_version: ${{ needs.bump-version.outputs.version }}
52+
packages_basedir: ${{ needs.list-packages.outputs.basedir }}
53+
package_path: ${{ matrix.path }}
54+
run-test: ${{ github.event_name == 'pull_request' }}
55+
secrets: inherit
56+
57+
carvel-publish-package:
58+
needs:
59+
- bump-version
60+
- list-packages
61+
if: needs.list-packages.outputs.carvel_publish == 'true'
62+
strategy:
63+
matrix: ${{ fromJson(needs.list-packages.outputs.carvel) }}
64+
uses: ./.github/workflows/reusable-carvel-publish-package.yml
65+
with:
66+
package_name: ${{ matrix.name }}
67+
package_provider: ${{ matrix.provider }}
68+
package_version: ${{ needs.bump-version.outputs.version }}
69+
packages_basedir: ${{ needs.list-packages.outputs.basedir }}
70+
package_path: ${{ matrix.path }}
71+
72+
carvel-publish-repo:
73+
if: needs.list-packages.outputs.carvel_publish == 'true'
74+
uses: ./.github/workflows/reusable-carvel-publish-repo.yml
75+
needs:
76+
- list-packages
77+
- bump-version
78+
- carvel-publish-package
79+
with:
80+
packages_basedir: ${{ needs.list-packages.outputs.basedir }}
81+
packages_list: ${{ needs.list-packages.outputs.carvel }}
82+
package_version: ${{ needs.bump-version.outputs.version }}
83+
repo_version: ${{ needs.bump-version.outputs.version }}
84+
prepare_repo_pr: ${{ needs.bump-version.outputs.is_prerelease == 'false' }}
85+
release: ${{ needs.bump-version.outputs.is_prerelease == 'true' }}
86+
87+
carvel-test:
88+
if: github.event_name == 'pull_request'
89+
uses: ./.github/workflows/reusable-carvel-test.yml
90+
needs:
91+
- list-packages
92+
- bump-version
93+
- carvel-publish-repo
94+
strategy:
95+
matrix: ${{ fromJson(needs.list-packages.outputs.carvel) }}
96+
with:
97+
repo_version: ${{ needs.bump-version.outputs.version }}
98+
package_name: ${{ matrix.name }}
99+
package_provider: ${{ matrix.provider }}
100+
package_version: ${{ needs.bump-version.outputs.version }}
101+
packages_basedir: ${{ needs.list-packages.outputs.basedir }}
102+
package_path: ${{ matrix.path }}
103+
pull_request_number: ${{ needs.carvel-publish-repo.outputs.pull_request_number}}
104+
package_prerelease: ${{ needs.bump-version.outputs.is_prerelease }}
105+
secrets: inherit

0 commit comments

Comments
 (0)