This is an automated email from the ASF dual-hosted git repository.
kamilbregula pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/master by this push:
new d44e69a Automatically remove deleted files from the deploy branch
(#328)
d44e69a is described below
commit d44e69a95fe7de975af5150478c3a9e687e6131c
Author: Kamil BreguΕa <[email protected]>
AuthorDate: Thu Dec 3 19:13:11 2020 +0100
Automatically remove deleted files from the deploy branch (#328)
---
.github/workflows/build.yml | 50 +++++++++++++++++++++++----------------------
1 file changed, 26 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c974e8f..58b724e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,68 +28,70 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - name: π Checkout
+ uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f #
v2.3.4
with:
submodules: recursive
lfs: true
- - uses: actions/setup-python@v2
+ - name: π Setup Python
+ uses: actions/setup-python@41b7212b1668f5de9d65e9c82aa777e6bbedb3a8 #
v2.1.4
with:
python-version: '3.6'
- - name: Build Docker image
+ - name: π³ Build Docker image
run: ./site.sh build-image
- - name: Install node depedencies
+ - name: π’ Install node depedencies
run: ./site.sh install-node-deps
- - name: Install Python depedencies
+ - name: π Install Python depedencies
run: pip install -r requirements.txt
- - name: Lint
+ - name: π Lint
run: pre-commit run --all-files --show-diff-on-failure
- - name: Build site
+ - name: π§ Build site
run: ./site.sh build-site
- - name: Optimize artifacts
+ - name: π
Optimize artifacts
if: ${{ github.event_name == 'pull_request' }}
run: |
rm -rf ./dist/docs/*
echo "These files have been deleted to optimize the size of the
artifacts." > ./dist/docs/index.html
echo "Here was the contents of the ./docs-archive directory" >>
./dist/docs/index.html
find ./dist/
- - uses: actions/upload-artifact@v2
- name: Upload website as artifact
+ - uses: actions/upload-artifact@726a6dcd0199f578459862705eed35cda05af50b
# v2.2.1
+ name: π Upload website as artifact
if: ${{ github.event_name == 'pull_request' }}
with:
name: airflow-website
path: './dist'
- - name: Deploy website on asf-site branch
- uses: s0/git-publish-subdir-action@develop
+ - name: π Deploy website on asf-site branch
+ uses:
JamesIves/github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505
# v3.7.1
if: ${{ github.event_name == 'push' }}
- env:
- REPO: self
- BRANCH: asf-site
- FOLDER: dist
+ with:
+ BRANCH: asf-site # The branch the action should deploy to.
+ FOLDER: dist # The folder the action should deploy.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: Copy files from site to theme
+ CLEAN: true # Automatically remove deleted files from the deploy
branch
+ - name: π§ Copy files from site to themeοΈ
run: ./site.sh prepare-theme
- - name: Prepare sphinx_airflow_theme package
+ - name: π§ Prepare sphinx_airflow_theme package οΈ
working-directory: sphinx_airflow_theme
run: |
python3 -m pip install --user --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel
- - uses: actions/upload-artifact@v2
- name: Upload sphinx_airflow_theme package as artifact
+ - name: π Upload sphinx_airflow_theme package as artifact
+ uses: actions/upload-artifact@726a6dcd0199f578459862705eed35cda05af50b
# v2.2.1
with:
name: airflow-sphinx-theme
path: './sphinx_airflow_theme/dist'
- - name: Build theme demo
+ - name: π§ Build theme demo
working-directory: sphinx_airflow_theme
run: |
pip install ./dist/sphinx_airflow_theme-*.whl
cd demo
./docs.sh build
- - uses: actions/upload-artifact@v2
- name: Upload sphinx_airflow_theme demo as artifact
+ - name: π Upload sphinx_airflow_theme demo as artifact
+ uses: actions/upload-artifact@726a6dcd0199f578459862705eed35cda05af50b
# v2.2.1
with:
name: airflow-sphinx-theme-demo
path: './sphinx_airflow_theme/demo/_build/html'
- - name: Create releases on GitHub
+ - name: π Create releases on GitHub
working-directory: sphinx_airflow_theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}