Skip to content

Commit

Permalink
move back to action for base path
Browse files Browse the repository at this point in the history
  • Loading branch information
christofgehrig committed Feb 3, 2025
1 parent 13b15e9 commit 4602d22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ jobs:
ruby-version: "3.0"
bundler-cache: true

# - name: Get Pages url
# if: github.event.action != 'closed'
# id: pages
# uses: actions/configure-pages@v2
# with:
# enablement: false
- name: Get Pages url
if: github.event.action != 'closed'
id: pages
uses: actions/configure-pages@v2
with:
enablement: false

- name: Build preview version of site
if: github.event.action != 'closed'
run: |
JEKYLL_ENV=production bundle exec jekyll build --baseurl "https://sciai-lab.org/${{ env.PREVIEWS_FOLDER }}/pr-${{ github.event.number }}"
JEKYLL_ENV=production bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '' }}/${{ env.PREVIEWS_FOLDER }}/pr-${{ github.event.number }}"
- name: Commit preview to Pages branch
uses: rossjrw/pr-preview-action@v1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
ruby-version: "3.0"
bundler-cache: true

# - name: Get Pages url
# id: pages
# uses: actions/configure-pages@v2
# with:
# enablement: false
- name: Get Pages url
id: pages
uses: actions/configure-pages@v2
with:
enablement: false

- name: Build live version of site
run: |
JEKYLL_ENV=production bundle exec jekyll build --baseurl "https://sciai-lab.org/"
JEKYLL_ENV=production bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '' }}"
- name: Commit live site to Pages branch
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit 4602d22

Please sign in to comment.