Skip to content

Commit

Permalink
Add Upload artifact step to workflow. (#30)
Browse files Browse the repository at this point in the history
Refs #22
  • Loading branch information
carltongibson committed Feb 24, 2024
1 parent 9d02ffd commit b38354b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,18 @@ jobs:
- name: Build docs
run: make json
working-directory: ./docs
# Refs #22: Upload an artifact containing the built docs.
- name: Upload docs
id: artifact-upload-step
uses: actions/upload-artifact@v2
with:
# Use a name from the commit hash to avoid collisions.
name: docs-${{ github.sha }}
path: docs/build/json
# TODO: This step not working even though the example is straight from the docs.
# - name: Get artifact details
# run: |
# echo "Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}" >> $GITHUB_STEP_SUMMARY
# echo "Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}" >> $GITHUB_STEP_SUMMARY
# # https://github.com/actions/upload-artifact?tab=readme-ov-file#example-output-between-steps
# echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}' >> $GITHUB_STEP_SUMMARY

0 comments on commit b38354b

Please sign in to comment.