Skip to content

Commit

Permalink
Update verify.yml
Browse files Browse the repository at this point in the history
Adding some context to the PDF build.

Signed-off-by: Bill Traynor <[email protected]>
  • Loading branch information
wmat authored Nov 28, 2023
1 parent f08cce4 commit 1150b4b
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,29 @@ on:
jobs:
Build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- uses: actions/checkout@v3
uses: actions/checkout@v3

# Set the short SHA for use in artifact names
- name: Set short SHA
run: echo "SHORT_SHA=$(echo ${GITHUB_SHA::7})" >> $GITHUB_ENV

# Get the current date
- name: Get current date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

# Pull the latest RISC-V Docs container image
- name: Pull Container
- id: pull_container_image
- run: |
id: pull_container_image
run: |
docker pull riscvintl/riscv-docs-base-container-image:latest
# Build PDF and HTML files using the container
# Build PDF file using the container
- name: Build Files
- id: build_files
- if: steps.pull_container_image.outcome == 'success'
- run: |
id: build_files
if: steps.pull_container_image.outcome == 'success'
run: |
docker run --rm -v ${{ github.workspace }}:/build riscvintl/riscv-docs-base-container-image:latest \
/bin/sh -c make

0 comments on commit 1150b4b

Please sign in to comment.