Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: deploy github pages

on:
# Runs on pushes targeting the default branch
# Runs on pushes to main (content) or gh-pages (scaffolding)
push:
branches: ["main"]
branches:
- main
- gh-pages

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -24,15 +26,34 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout gh-pages (Jekyll scaffolding)
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Checkout docs content from main
uses: actions/checkout@v4
with:
ref: main
sparse-checkout: |
docs/ibm-cloud-rules.md
sparse-checkout-cone-mode: false
path: _main_docs

- name: Copy docs content into build tree
run: |
mkdir -p docs
cp _main_docs/docs/ibm-cloud-rules.md docs/ibm-cloud-rules.md

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down
16 changes: 0 additions & 16 deletions _config.yml

This file was deleted.

27 changes: 0 additions & 27 deletions _sass/custom.scss

This file was deleted.

6 changes: 0 additions & 6 deletions assets/main.scss

This file was deleted.

13 changes: 0 additions & 13 deletions index.html

This file was deleted.

Loading