This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new c618723dee Attempt to deploy to gh-pages using standard git commands
(#813)
c618723dee is described below
commit c618723deee507eeac2a969ac86ac9938fd737e3
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Jun 17 15:48:31 2023 +0200
Attempt to deploy to gh-pages using standard git commands (#813)
---
.github/workflows/build.yml | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 91b755da39..2ad69cbfd1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -64,6 +64,13 @@ jobs:
./.github/scripts/print_df.sh
- name: π Lint
uses:
apache/airflow-pre-commit-action@0764670bf370aab253130d534e1eda7ff497dc60 #
v2.0.0
+ - name: π Checkout gh-pages branch with minimum depth
+ uses: actions/checkout@v3
+ if: ${{ github.event_name == 'push' }}
+ with:
+ ref: gh-pages
+ fetch-depth: 1
+ path: dist
- name: π§ Build site
run: |
./site.sh build-site
@@ -100,14 +107,13 @@ jobs:
rm -rf node_modules
sudo rm -rf "$AGENT_TOOLSDIRECTORY/node"
./.github/scripts/print_df.sh
- - name: π Deploy website on gh-pages branch
- uses:
apache/airflow-JamesIves-github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505
# v3.7.1
+ - name: π Amend gh-pages branch and deploy it with force
if: ${{ github.event_name == 'push' }}
- with:
- BRANCH: gh-pages # The branch the action should deploy to.
- FOLDER: dist # The folder the action should deploy.
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- CLEAN: true # Automatically remove deleted files from the deploy
branch
+ working-directory: dist
+ run: |
+ git add .
+ git commit --amend --no-edit
+ git push origin gh-pages --force
- name: π§ Copy files from site to themeοΈ
run: |
./site.sh prepare-theme