-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,9 @@ jobs: | |
|
||
- name: Check out RedisX | ||
uses: actions/checkout@v4 | ||
with: | ||
path: redisx | ||
with: | ||
repository: Smithsonian/redisx | ||
path: redisx | ||
|
||
- name: Check out xchange | ||
uses: actions/checkout@v4 | ||
|
@@ -46,7 +47,6 @@ jobs: | |
|
||
site-update: | ||
name: Update github pages | ||
working-directory: ./redisx | ||
needs: apidocs | ||
if: github.repository_owner == 'Smithsonian' && (github.event_name == 'release' || contains(github.event.head_commit.message, 'site update')) | ||
|
||
|
@@ -55,13 +55,29 @@ jobs: | |
|
||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
repository: Smithsonian/redisx | ||
path: redisx | ||
|
||
- name: Check out xchange | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Smithsonian/xchange | ||
path: xchange | ||
|
||
- name: Generate headless README | ||
run: make README-orig.md | ||
run: make -C redisx README-orig.md | ||
|
||
- name: Generate xchange apidocs | ||
uses: mattnotmitt/[email protected] | ||
with: | ||
additional-packages: font-roboto | ||
working-directory: ./xchange | ||
|
||
- uses: mattnotmitt/[email protected] | ||
- name: Generate RedisX apidocs | ||
uses: mattnotmitt/[email protected] | ||
with: | ||
additional-packages: font-roboto | ||
working-directory: ./redisx | ||
|
||
- name: Checkout gh-pages | ||
uses: actions/checkout@v4 | ||
|
@@ -74,15 +90,15 @@ jobs: | |
|
||
- name: Copy README | ||
run: | | ||
echo '<img src="/xchange/resources/CfA-logo.png" alt="CfA logo" width="400" height="67" align="right">' > site/doc/README.md | ||
echo '<img src="/redisx/resources/CfA-logo.png" alt="CfA logo" width="400" height="67" align="right">' > site/doc/README.md | ||
echo '<br clear="all">' >> site/doc/README.md | ||
cat README-orig.md >> site/doc/README.md | ||
cat redisx/README-orig.md >> site/doc/README.md | ||
- name: Copy CHANGELOG | ||
run: cp CHANGELOG.md site/doc/ | ||
run: cp redisx/CHANGELOG.md site/doc/ | ||
|
||
- name: Copy API documentation | ||
run: cp -a apidoc site/ | ||
run: cp -a redisx/apidoc site/ | ||
|
||
- name: Push to pages | ||
run: | | ||
|
@@ -95,7 +111,6 @@ jobs: | |
changelog-update: | ||
name: Update CHANGELOG on github pages | ||
working-directory: ./redisx | ||
if: github.repository_owner == 'Smithsonian' && contains(github.event.head_commit.message, 'changelog update') | ||
|
||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters