Skip to content

Commit

Permalink
Prepare asf-site deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Oct 1, 2024
1 parent d9b45bf commit 63e0500
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ jobs:
- name: Build Apache Site
run: site/bin/create-static-site.sh

- name: Dummy to be removed
run: ls -al site/build/apache-site

- name: Dummy to be removed
run: ls -al site/build/apache-site/releases

# TODO Do we want to deploy from 'asf-site' in the 'polaris-site' repo or in the 'polaris' repo?
# The former requires a secret
- name: Deploy Static Site to GitHub
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'apache/polaris'
run: echo "Deployment work TBD"
if: github.event_name == 'push' && github.repository == 'apache/polaris'
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
external_repository: apache/polaris-site
publish_branch: asf-site
deploy_key: ${{ secrets.APACHE_SITE_DEPLOY_KEY }}
publish_dir: ./site/build/apache-site
cname: polaris.apache.org

0 comments on commit 63e0500

Please sign in to comment.