Skip to content

Commit

Permalink
test GH Pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-kumar-pilla committed Mar 4, 2024
1 parent c0ca0c0 commit 207eecd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
39 changes: 19 additions & 20 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@ runs:
steps:
- name: Fetch the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: pip install -r requirements.txt
shell: bash
- name: Consent to the use of Kedro-Telemetry
run: "echo 'consent: true' > .telemetry"
shell: bash
- name: Create build directory
run: kedro viz build
shell: bash
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build
# force_orphan: true
# python-version: "3.11"
# cache: "pip"
# - name: Install dependencies
# run: pip install -r requirements.txt
# shell: bash
# - name: Consent to the use of Kedro-Telemetry
# run: "echo 'consent: true' > .telemetry"
# shell: bash
# - name: Create build directory
# run: kedro viz build
# shell: bash
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./temp_build
force_orphan: true
11 changes: 11 additions & 0 deletions temp_build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GH Page Kedro Viz</title>
</head>
<body>
<h1>Published version of Kedro Viz !!</h1>
</body>
</html>

0 comments on commit 207eecd

Please sign in to comment.