forked from apache/calcite-avatica
-
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 #4 from datametica/master_2
Master 2
- Loading branch information
Showing
183 changed files
with
9,917 additions
and
2,305 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,35 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
github: | ||
description: "Apache Calcite Avatica" | ||
homepage: https://calcite.apache.org/avatica/ | ||
features: | ||
wiki: false | ||
issues: false | ||
projects: false | ||
enabled_merge_buttons: | ||
# "squash and merge" replaces committer with noreply@github, and we don't want that | ||
# See https://lists.apache.org/thread/vxxpt1x316kjryb4dptsbs95p66d9xrv | ||
squash: false | ||
# We prefer linear history, so creating merge commits is disabled in UI | ||
merge: false | ||
rebase: true | ||
notifications: | ||
commits: [email protected] | ||
issues: [email protected] | ||
pullrequests: [email protected] | ||
jira_options: link label |
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
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
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,58 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to you under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
name: Publish non-release website updates | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'site/**' # Trigger only for changes to files in the site/ folder | ||
- '!site/_docs/**' # except for files in the site/_docs/ folder | ||
- 'site/_docs/docker_images.md' # unless the file is site/_docs/docker_images.md | ||
- 'site/_docs/history.md' # or site/_docs/history.md | ||
- 'site/_docs/howto.md' # or site/_docs/howto.md | ||
- 'site/_docs/index.md' # or site/_docs/index.md | ||
|
||
jobs: | ||
publish-website: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build site | ||
working-directory: site | ||
run: | | ||
docker compose run -e JEKYLL_UID=$(id -u) -e JEKYLL_GID=$(id -g) build-site | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: apache/calcite-site | ||
path: calcite-site | ||
token: ${{ secrets.CALCITE_WEBSITE_BUILD }} | ||
- name: Publish site | ||
working-directory: calcite-site | ||
run: | | ||
git config user.email ${{ github.actor }}@users.noreply.github.com | ||
git config user.name ${{ github.actor }} | ||
rm -rf avatica/ | ||
mv ../site/target/avatica/ . | ||
git reset -- avatica/javadocAggregate/ # Restore the avatica javadoc | ||
git checkout -- avatica/javadocAggregate/ | ||
git add . | ||
if ! git diff-index --quiet HEAD; then | ||
git commit -m "Website deployed from calcite-avatica@$GITHUB_SHA" | ||
git push origin main | ||
fi |
53 changes: 53 additions & 0 deletions
53
.github/workflows/publish-site-and-javadocs-on-release.yml
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,53 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to you under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
name: Publish website on release | ||
|
||
on: | ||
push: | ||
tags: | ||
- rel/avatica-[0-9]+.[0-9]+.[0-9]+ # Trigger only when the tag matches rel/avatica-X.Y.Z | ||
|
||
jobs: | ||
publish-website: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build site | ||
working-directory: site | ||
run: | | ||
docker compose run -e JEKYLL_UID=$(id -u) -e JEKYLL_GID=$(id -g) build-site | ||
- name: Build javadoc | ||
working-directory: site | ||
run: | | ||
docker compose run generate-javadoc | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: apache/calcite-site | ||
path: calcite-site | ||
token: ${{ secrets.CALCITE_WEBSITE_BUILD }} | ||
- name: Publish site | ||
working-directory: calcite-site | ||
run: | | ||
git config user.email ${{ github.actor }}@users.noreply.github.com | ||
git config user.name ${{ github.actor }} | ||
rm -rf avatica/ | ||
mv ../site/target/avatica/ . | ||
git add . | ||
if ! git diff-index --quiet HEAD; then | ||
git commit -m "Website deployed from calcite-avatica@$GITHUB_SHA" | ||
git push origin main | ||
fi |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
**/.editorconfig | ||
*~ | ||
/.idea | ||
!/.idea/vcs.xml | ||
*.iml | ||
settings.xml | ||
.classpath.txt | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.