diff --git a/.github/workflows/codeql-csharp-analysis.yml b/.github/workflows-backup/codeql-csharp-analysis.yml similarity index 100% rename from .github/workflows/codeql-csharp-analysis.yml rename to .github/workflows-backup/codeql-csharp-analysis.yml diff --git a/.github/workflows/codeql-java-analysis.yml b/.github/workflows-backup/codeql-java-analysis.yml similarity index 100% rename from .github/workflows/codeql-java-analysis.yml rename to .github/workflows-backup/codeql-java-analysis.yml diff --git a/.github/workflows/codeql-js-analysis.yml b/.github/workflows-backup/codeql-js-analysis.yml similarity index 100% rename from .github/workflows/codeql-js-analysis.yml rename to .github/workflows-backup/codeql-js-analysis.yml diff --git a/.github/workflows/codeql-py-analysis.yml b/.github/workflows-backup/codeql-py-analysis.yml similarity index 100% rename from .github/workflows/codeql-py-analysis.yml rename to .github/workflows-backup/codeql-py-analysis.yml diff --git a/.github/workflows-backup/deploy-docs.yml b/.github/workflows-backup/deploy-docs.yml new file mode 100644 index 00000000000..84cefd1fd48 --- /dev/null +++ b/.github/workflows-backup/deploy-docs.yml @@ -0,0 +1,95 @@ +# 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 +# +# https://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. +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. + + +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +# Default to bash +defaults: + run: + shell: bash + working-directory: doc/ + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.132.1 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass + run: sudo snap install dart-sass + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo + env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache + HUGO_ENVIRONMENT: production + TZ: America/Los_Angeles + run: | + hugo \ + --gc \ + --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/java-publish-snapshot.yml b/.github/workflows-backup/java-publish-snapshot.yml similarity index 100% rename from .github/workflows/java-publish-snapshot.yml rename to .github/workflows-backup/java-publish-snapshot.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows-backup/labeler.yml similarity index 100% rename from .github/workflows/labeler.yml rename to .github/workflows-backup/labeler.yml diff --git a/.github/workflows/maven4.yml b/.github/workflows-backup/maven4.yml similarity index 100% rename from .github/workflows/maven4.yml rename to .github/workflows-backup/maven4.yml diff --git a/.github/workflows/rat.yml b/.github/workflows-backup/rat.yml similarity index 100% rename from .github/workflows/rat.yml rename to .github/workflows-backup/rat.yml diff --git a/.github/workflows/spotless.yml b/.github/workflows-backup/spotless.yml similarity index 100% rename from .github/workflows/spotless.yml rename to .github/workflows-backup/spotless.yml diff --git a/.github/workflows/test-docker.yml b/.github/workflows-backup/test-docker.yml similarity index 100% rename from .github/workflows/test-docker.yml rename to .github/workflows-backup/test-docker.yml diff --git a/.github/workflows/test-lang-c++-ARM.yml b/.github/workflows-backup/test-lang-c++-ARM.yml similarity index 100% rename from .github/workflows/test-lang-c++-ARM.yml rename to .github/workflows-backup/test-lang-c++-ARM.yml diff --git a/.github/workflows/test-lang-c++.yml b/.github/workflows-backup/test-lang-c++.yml similarity index 100% rename from .github/workflows/test-lang-c++.yml rename to .github/workflows-backup/test-lang-c++.yml diff --git a/.github/workflows/test-lang-c-ARM.yml b/.github/workflows-backup/test-lang-c-ARM.yml similarity index 100% rename from .github/workflows/test-lang-c-ARM.yml rename to .github/workflows-backup/test-lang-c-ARM.yml diff --git a/.github/workflows/test-lang-c.yml b/.github/workflows-backup/test-lang-c.yml similarity index 100% rename from .github/workflows/test-lang-c.yml rename to .github/workflows-backup/test-lang-c.yml diff --git a/.github/workflows/test-lang-csharp-ARM.yml b/.github/workflows-backup/test-lang-csharp-ARM.yml similarity index 100% rename from .github/workflows/test-lang-csharp-ARM.yml rename to .github/workflows-backup/test-lang-csharp-ARM.yml diff --git a/.github/workflows/test-lang-csharp.yml b/.github/workflows-backup/test-lang-csharp.yml similarity index 100% rename from .github/workflows/test-lang-csharp.yml rename to .github/workflows-backup/test-lang-csharp.yml diff --git a/.github/workflows/test-lang-java-ARM.yml b/.github/workflows-backup/test-lang-java-ARM.yml similarity index 100% rename from .github/workflows/test-lang-java-ARM.yml rename to .github/workflows-backup/test-lang-java-ARM.yml diff --git a/.github/workflows/test-lang-java.yml b/.github/workflows-backup/test-lang-java.yml similarity index 100% rename from .github/workflows/test-lang-java.yml rename to .github/workflows-backup/test-lang-java.yml diff --git a/.github/workflows/test-lang-js-ARM.yml b/.github/workflows-backup/test-lang-js-ARM.yml similarity index 100% rename from .github/workflows/test-lang-js-ARM.yml rename to .github/workflows-backup/test-lang-js-ARM.yml diff --git a/.github/workflows/test-lang-js.yml b/.github/workflows-backup/test-lang-js.yml similarity index 100% rename from .github/workflows/test-lang-js.yml rename to .github/workflows-backup/test-lang-js.yml diff --git a/.github/workflows/test-lang-perl-ARM.yml b/.github/workflows-backup/test-lang-perl-ARM.yml similarity index 100% rename from .github/workflows/test-lang-perl-ARM.yml rename to .github/workflows-backup/test-lang-perl-ARM.yml diff --git a/.github/workflows/test-lang-perl.yml b/.github/workflows-backup/test-lang-perl.yml similarity index 100% rename from .github/workflows/test-lang-perl.yml rename to .github/workflows-backup/test-lang-perl.yml diff --git a/.github/workflows/test-lang-php-ARM.yml b/.github/workflows-backup/test-lang-php-ARM.yml similarity index 100% rename from .github/workflows/test-lang-php-ARM.yml rename to .github/workflows-backup/test-lang-php-ARM.yml diff --git a/.github/workflows/test-lang-php.yml b/.github/workflows-backup/test-lang-php.yml similarity index 100% rename from .github/workflows/test-lang-php.yml rename to .github/workflows-backup/test-lang-php.yml diff --git a/.github/workflows/test-lang-py-ARM.yml b/.github/workflows-backup/test-lang-py-ARM.yml similarity index 100% rename from .github/workflows/test-lang-py-ARM.yml rename to .github/workflows-backup/test-lang-py-ARM.yml diff --git a/.github/workflows/test-lang-py.yml b/.github/workflows-backup/test-lang-py.yml similarity index 100% rename from .github/workflows/test-lang-py.yml rename to .github/workflows-backup/test-lang-py.yml diff --git a/.github/workflows/test-lang-ruby-ARM.yml b/.github/workflows-backup/test-lang-ruby-ARM.yml similarity index 100% rename from .github/workflows/test-lang-ruby-ARM.yml rename to .github/workflows-backup/test-lang-ruby-ARM.yml diff --git a/.github/workflows/test-lang-ruby.yml b/.github/workflows-backup/test-lang-ruby.yml similarity index 100% rename from .github/workflows/test-lang-ruby.yml rename to .github/workflows-backup/test-lang-ruby.yml diff --git a/.github/workflows/test-lang-rust-audit.yml b/.github/workflows-backup/test-lang-rust-audit.yml similarity index 100% rename from .github/workflows/test-lang-rust-audit.yml rename to .github/workflows-backup/test-lang-rust-audit.yml diff --git a/.github/workflows/test-lang-rust-ci-ARM.yml b/.github/workflows-backup/test-lang-rust-ci-ARM.yml similarity index 100% rename from .github/workflows/test-lang-rust-ci-ARM.yml rename to .github/workflows-backup/test-lang-rust-ci-ARM.yml diff --git a/.github/workflows/test-lang-rust-ci.yml b/.github/workflows-backup/test-lang-rust-ci.yml similarity index 100% rename from .github/workflows/test-lang-rust-ci.yml rename to .github/workflows-backup/test-lang-rust-ci.yml diff --git a/.github/workflows/test-lang-rust-clippy.yml b/.github/workflows-backup/test-lang-rust-clippy.yml similarity index 100% rename from .github/workflows/test-lang-rust-clippy.yml rename to .github/workflows-backup/test-lang-rust-clippy.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 00000000000..1d9c96e5b53 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,88 @@ +# 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 +# +# https://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. +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. + + +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +# Default to bash +defaults: + run: + working-directory: doc/ + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.132.1 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + - name: Install Hugo CLI + run: | + wget -q -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass + run: sudo snap install dart-sass + - name: Install Node.js dependencies + run: "npm install" + - name: Build with Hugo + env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache + HUGO_ENVIRONMENT: production + TZ: America/Los_Angeles + run: | + hugo \ + --gc \ + --minify \ + --baseURL "https://fokko.github.io/avro/" \ + --destination /tmp/site/ + - name: Debugg + run: ls -lah /tmp/site/ + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + ref: asf-site + - name: Commit new site + run: | + + git config --global user.email "dev@avro.apache.org" + git config --global user.name "Github Actions" + git rm -r * + cp -R /tmp/site . + git add . + git commit -m "Update docs" + git push origin asf-site diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index d96e7ce1437..00000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "doc/themes/docsy"] - path = doc/themes/docsy - url = https://github.com/google/docsy diff --git a/doc/content/en/_index.html b/doc/content/en/_index.html index 618a99a14bf..57c806025ba 100644 --- a/doc/content/en/_index.html +++ b/doc/content/en/_index.html @@ -69,4 +69,4 @@