-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-49495][DOCS] Document and Feature Preview on the master branch via Live GitHub Pages Updates #47968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[SPARK-49495][DOCS] Document and Feature Preview on the master branch via Live GitHub Pages Updates #47968
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
882ffa0
[SPARK-49495][SQL] Document and Feature Preview on master branch via …
yaooqinn 07639fb
[SPARK-49495][SQL] Document and Feature Preview on master branch via …
yaooqinn b920d31
[SPARK-49495][SQL] Document and Feature Preview on master branch via …
yaooqinn af0f64c
[SPARK-49495][SQL] Document and Feature Preview on master branch via …
yaooqinn b656e3d
Update .github/workflows/pages.yml
yaooqinn 1e1e919
Update .github/workflows/pages.yml
yaooqinn 305ac6e
Update .github/workflows/pages.yml
yaooqinn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,90 @@ | ||
| # | ||
| # 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: GitHub Pages deployment | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| concurrency: | ||
| group: 'docs preview' | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| docs: | ||
| name: Build and deploy documentation | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| pages: write | ||
| env: | ||
| SPARK_TESTING: 1 # Reduce some noise in the logs | ||
| RELEASE_VERSION: 'In-Progress' | ||
| steps: | ||
| - name: Checkout Spark repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: apache/spark | ||
| ref: 'master' | ||
| - name: Install Java 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: zulu | ||
| java-version: 17 | ||
| - name: Install Python 3.9 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.9' | ||
| architecture: x64 | ||
| cache: 'pip' | ||
| - name: Install Python dependencies | ||
| run: pip install --upgrade -r dev/requirements.txt | ||
| - name: Install Ruby for documentation generation | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '3.3' | ||
| bundler-cache: true | ||
| - name: Install Pandoc | ||
| uses: pandoc/actions/setup@d6abb76f6c8a1a9a5e15a5190c96a02aabffd1ee | ||
| with: | ||
| version: 3.3 | ||
| - name: Install dependencies for documentation generation | ||
| run: | | ||
| cd docs | ||
| gem install bundler -v 2.4.22 -n /usr/local/bin | ||
| bundle install --retry=100 | ||
| - name: Run documentation build | ||
| run: | | ||
| sed -i".tmp1" 's/SPARK_VERSION:.*$/SPARK_VERSION: '"$RELEASE_VERSION"'/g' docs/_config.yml | ||
| sed -i".tmp2" 's/SPARK_VERSION_SHORT:.*$/SPARK_VERSION_SHORT: '"$RELEASE_VERSION"'/g' docs/_config.yml | ||
| sed -i".tmp3" "s/'facetFilters':.*$/'facetFilters': [\"version:$RELEASE_VERSION\"]/g" docs/_config.yml | ||
| sed -i".tmp4" 's/__version__: str = .*$/__version__: str = "'"$RELEASE_VERSION"'"/' python/pyspark/version.py | ||
| cd docs | ||
| SKIP_RDOC=1 bundle exec jekyll build | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v5 | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: 'docs/_site' | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.