Skip to content

Commit

Permalink
fix: add build retention and artifact path (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingertips18 authored Jan 18, 2025
1 parent 95cc307 commit 800873e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ jobs:
with:
name: dist
path: dist
retention-days: 1
20 changes: 17 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: Portfolio - Deploy

on:
workflow_run:
workflows: ["Portfolio - Build"]
types:
- completed
branches:
- main
workflow_dispatch:

jobs:
deploy:
name: Deploy Application
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}

steps:
- name: Checkout Code
Expand All @@ -16,8 +23,15 @@ jobs:
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest

- name: Install gh-pages
run: npm install -g gh-pages

- name: Deploy to GitHub Pages
run: |
npm install -g gh-pages
npm run deploy
run: npm run deploy

0 comments on commit 800873e

Please sign in to comment.