Skip to content

Commit 6a78852

Browse files
committed
add debug gha
1 parent 18d6d18 commit 6a78852

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Debug GHA output
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: ["thomasht86/fix-base-url"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Setup Ruby
37+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
38+
uses: ruby/setup-ruby@76da3376798599115ed11bf448e7a8390e34378c
39+
with:
40+
ruby-version: "3.1.0" # Not needed with a .ruby-version file
41+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42+
cache-version: 0 # Increment this number if you need to re-download cached gems
43+
- name: Setup Pages
44+
id: pages
45+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
46+
47+
- name: Echo output
48+
run: echo "Base path is ${{ steps.pages.outputs.base_path }}"
49+
50+
- name: Print all pages outputs as JSON
51+
run: |
52+
echo "All pages outputs as JSON:"
53+
echo '{
54+
"base_path": "${{ steps.pages.outputs.base_path }}",
55+
"base_url": "${{ steps.pages.outputs.base_url }}",
56+
"host": "${{ steps.pages.outputs.host }}",
57+
"origin": "${{ steps.pages.outputs.origin }}"
58+
}' | jq .
59+
60+
- name: Print outputs using toJSON (alternative method)
61+
run: |
62+
echo "Pages outputs using toJSON:"
63+
echo '${{ toJSON(steps.pages.outputs) }}'
64+
# - name: Build with Jekyll
65+
# # Outputs to the './_site' directory by default
66+
# run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
67+
# env:
68+
# JEKYLL_ENV: production
69+
# - name: Upload artifact
70+
# # Automatically uploads an artifact from the './_site' directory by default
71+
# uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
72+
73+
# # Deployment job
74+
# deploy:
75+
# environment:
76+
# name: github-pages
77+
# url: ${{ steps.deployment.outputs.page_url }}
78+
# runs-on: ubuntu-latest
79+
# needs: build
80+
# steps:
81+
# - name: Deploy to GitHub Pages
82+
# id: deployment
83+
# uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

0 commit comments

Comments
 (0)