First try at pipeline publish
Some checks failed
Build and Publish Portfolio / build (push) Successful in 24s
Build and Publish Portfolio / publish (push) Failing after 3m9s

This commit is contained in:
2025-08-07 22:31:49 -05:00
parent a85c176d28
commit b3f30bc715
9 changed files with 801 additions and 9 deletions

View File

@@ -0,0 +1,57 @@
name: Build and Publish Portfolio
on:
push:
branches: [main]
tags:
- "v*" # Trigger on version tags like v1.0.0
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
cache: ""
- name: Install dependencies
run: npm ci
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') # Only publish on version tags
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
cache: ""
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist/
- name: Install dependencies
run: npm ci
- name: Deploy
run: npm run-script cdk -- deploy