Action-generate-orcad-schem.../.allspice/workflows/generate-orcad-schematic-pdf.yml
Gautam Peri c11fe0b2f9
Some checks failed
Generate Schematic PDFs / generate-schematic-pdfs (push) Failing after 35s
Adding OrCAD schematic PDF generation workflow
2025-05-22 20:29:18 +00:00

40 lines
1.4 KiB
YAML

# Generate OrCAD schematic PDFs when a push is made
name: Generate Schematic PDFs
on:
push:
jobs:
generate-schematic-pdfs:
runs-on: ubuntu-latest
steps:
# Check out repository code
- name: "[📚->🖥️] Check out repository code"
uses: actions/checkout@v3
- name: "[🔎->📂] List files in repo 🔎"
run: |
ls -la ${{ allspice.workspace }}
- name: Generate OrCAD Schematic PDF
uses: https://hub.allspice.io/Actions/generate-orcad-schematic-pdf.git@v0.1
with:
# The AllSpice repository that triggered this action
repository: ${{ allspice.repository }}
# The name of the branch that triggered this action
ref: ${{ allspice.head_ref || allspice.ref_name }}
# The commit hash that triggered this action
sha: ${{ allspice.sha }}
# Name of the title block field to annotate with the AllSpice commit
title_block_field: "Title"
# Set this to true to commit back to the origin branch of the design file
commit_to_branch: "True"
# An auth token / personal access token with write permissions
auth_token: ${{ secrets.PAT }}
# Archive the PDFs zip file as an artifact file
- name: Archive generated PDFs
uses: actions/upload-artifact@v3
with:
name: pdfs.zip
path: pdfs.zip