Skip to content

Commit

Permalink
probe: understanding steps output naming pattern
Browse files Browse the repository at this point in the history
steps.id.outputs.***
  • Loading branch information
marc-bouvier committed Jul 29, 2024
1 parent eb91f19 commit ac51b96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

# https://github.com/actions/configure-pages/blob/main/action.yml
# Expose output variables : base_url, origin, host, base_path
# Those are accessible prefixed by "steps.deployment.outputs."
# Those are accessible prefixed by "steps.pages.outputs."
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
Expand All @@ -63,13 +63,13 @@ jobs:

- name: Probe variables
run: |
echo "steps.deployment.outputs.base_url : ${{ steps.deployment.outputs.base_url }}"
echo "steps.deployment.outputs.origin : ${{ steps.deployment.outputs.origin }}"
echo "steps.deployment.outputs.host : ${{ steps.deployment.outputs.host }}"
echo "steps.deployment.outputs.base_path : ${{ steps.deployment.outputs.base_path }}"
echo "steps.pages.outputs.base_url : ${{ steps.pags.outputs.base_url }}"
echo "steps.pages.outputs.origin : ${{ steps.pags.outputs.origin }}"
echo "steps.pages.outputs.host : ${{ steps.pags.outputs.host }}"
echo "steps.pages.outputs.base_path : ${{ steps.pags.outputs.base_path }}"
- name: Build static site
run: npm run build -- --pathprefix=${{ steps.deployment.outputs.base_path }}
run: npm run build -- --pathprefix=${{ steps.pages.outputs.base_path }}

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

0 comments on commit ac51b96

Please sign in to comment.