Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- 'src/main/template/**'
- 'src/main/resources/**'
- '.asf.yaml.publish'
- 'pom.xml'
- '.htaccess'


jobs:
Expand Down Expand Up @@ -78,6 +78,8 @@ jobs:
if: success()
run: |
cp -v .asf.yaml.publish target/site/.asf.yaml
cp -v .htaccess target/site/


- name: Check Out Site Branch
if: success()
Expand All @@ -104,14 +106,15 @@ jobs:
if: success()
run: |
mv -v target/site/.asf.yaml ./
mv -v target/site/.htaccess ./


# Moves the new site resources from the build directory to the content directory
- name: Add New Site Resources
if: success()
run: |
mkdir -v content
mv -v target/site/* ./
mv -v target/site/* content/

# Explicitly removes build dir
# This checks whether there are any remaining resources that were not moved to the correct location
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/recreate-site-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ jobs:
git reset
rm .gitignore
git add target/site
git add .asf.yaml.publish
git add .asf.yaml.publish .htaccess
git clean -df


# Moves the site content and site configuration to the correct location
- name: Move Content and Site Configuration
if: success()
run: |
git mv -v target/site/* ./
mkdir -v content
git mv -v target/site/* content/
git mv -v .asf.yaml.publish .asf.yaml


Expand Down
3 changes: 3 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RewriteEngine On
RewriteBase /
RewriteRule ^(?!content/)(.*)$ content/$1