Skip to content

Commit

Permalink
Adding deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Dec 12, 2024
1 parent 5c6e826 commit 653982f
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI/CD Workflow for our Class

on:
push:
branches: olt
branches: olt

jobs:
build:
Expand Down Expand Up @@ -130,5 +130,25 @@ jobs:
- name: Build
run: cd frontend && npm run build

- name: Perform Analysis
uses: github/codeql-action/analyze@v2
# - name: Perform Analysis
# uses: github/codeql-action/analyze@v2

deploy:
name: 🚚 Deploy Frontend Artifact
runs-on: ubuntu-latest
needs:
- security-audit
- lint
- test
- static-analysis
if: github.ref == 'refs/heads/olt'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 653982f

Please sign in to comment.