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
4 changes: 2 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ github:
#
# set up branch protection for site publishing branch to avoid accidental deletion
# force-pushes are still necessary as they are used to deploy new versions of the site
publish:
allow_force_pushes: true
#publish:
# allow_force_pushes: true

notifications:
commits: notifications@db.apache.org
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ on:
paths:
- 'src/main/asciidoc/**'
- 'src/main/template/**'
- 'src/main/resources/**'
- '.asf.yaml.publish'
- '.htaccess'
- 'pom.xml'


jobs:
Expand All @@ -36,7 +37,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -52,7 +53,7 @@ jobs:
id: short-sha
run: |
short_sha=$(git rev-parse --short=10 $GITHUB_SHA)
echo "::set-output name=SHORT_SHA::$short_sha"
echo "SHORT_SHA=$short_sha" >> "$GITHUB_OUTPUT"


# Determines the author data of the HEAD commit
Expand All @@ -66,8 +67,8 @@ jobs:
author_email=$(git log -1 --format='%aE' HEAD)

echo "Setting up author data to use for deploy commit"
git config --local user.name $author_name
git config --local user.email $author_email
git config --local user.name "$author_name"
git config --local user.email "$author_email"


# Adds additional configuration files that are supposed to be included in the page deploy to the build directory
Expand All @@ -77,8 +78,6 @@ 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 @@ -105,15 +104,14 @@ 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/* content/
mv -v target/site/* ./

# Explicitly removes build dir
# This checks whether there are any remaining resources that were not moved to the correct location
Expand Down Expand Up @@ -152,7 +150,7 @@ jobs:
has_staged_changes=true
fi

echo "::set-output name=HAS_STAGED_CHANGES::$has_staged_changes"
echo "HAS_STAGED_CHANGES=$has_staged_changes" >> "$GITHUB_OUTPUT"


# Publishes the build results
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/recreate-site-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1
Expand All @@ -43,7 +43,7 @@ jobs:
id: short-sha
run: |
short_sha=$(git rev-parse --short=10 $GITHUB_SHA)
echo "::set-output name=SHORT_SHA::$short_sha"
echo "SHORT_SHA=$short_sha" >> "$GITHUB_OUTPUT"


# Determines the author data of the HEAD commit
Expand All @@ -57,8 +57,8 @@ jobs:
author_email=$(git log -1 --format='%aE' HEAD)

echo "Setting up author data to use for deploy commit"
git config --local user.name $author_name
git config --local user.email $author_email
git config --local user.name "$author_name"
git config --local user.email "$author_email"


# Creates and checks out a new orphan branch used to publish the site
Expand All @@ -76,16 +76,15 @@ jobs:
git reset
rm .gitignore
git add target/site
git add .asf.yaml.publish .htaccess
git add .asf.yaml.publish
git clean -df


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


Expand Down
3 changes: 0 additions & 3 deletions .htaccess

This file was deleted.

11 changes: 2 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>23</version>
<version>26</version>
</parent>

<groupId>org.apache.db</groupId>
Expand All @@ -47,7 +47,7 @@ This repository contains the sources for the Apache DB website</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>2.1.0</asciidoctor.maven.plugin.version>
<asciidoctor.maven.plugin.version>3.1.1</asciidoctor.maven.plugin.version>
<maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
<build.dir>${project.basedir}/target/site</build.dir>
</properties>
Expand Down Expand Up @@ -113,13 +113,6 @@ This repository contains the sources for the Apache DB website</description>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
Expand Down