forked from rh-openjdk/redhat-openjdk-containers
-
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.
Merge pull request #1 from jmtd/repository-moved
[OPENJDK-3391] Generate HTTP redirect pages to new site
- Loading branch information
Showing
4 changed files
with
617 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Generate docs for OpenJDK images | ||
on: | ||
push: | ||
branches: | ||
- 'repository-moved' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
gendocs: | ||
name: Generate documentation | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate docs | ||
run: | | ||
./docs/create.sh | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'docs' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if [ -d docs ]; then | ||
cd docs | ||
fi | ||
|
||
prefix=https://rh-openjdk.github.io/redhat-openjdk-containers/ | ||
|
||
while read path; do | ||
d="$(dirname $path)" | ||
mkdir -p "$d" | ||
uri="$prefix/$path" | ||
|
||
sed "s!DESTINATION!$uri!g" \ | ||
moved.html \ | ||
> "$path" | ||
|
||
done < uris_to_create |
Oops, something went wrong.