Skip to content

Commit

Permalink
Fix the prepare artifact steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mdarif committed Jan 27, 2025
1 parent 181f22f commit f0a903f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
cache: 'npm'

- run: npm ci --legacy-peer-deps
- uses: nrwl/nx-set-shas@v4

- name: Set SHAs
uses: nrwl/nx-set-shas@v4
Expand All @@ -41,20 +40,21 @@ jobs:
- name: Prepare artifact
run: |
mkdir production &&
cp -r ./apps/dashboard/* production &&
cp -r ./apps/login production
mkdir -p dist/production
cp -r dist/apps/dashboard/* dist/production/
cp -r dist/apps/login/* dist/production/login/
cp -r dist/apps/todo/* dist/production/todo/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/apps/dashboard
path: dist/production

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages # Add the environment here
name: github-pages

steps:
- name: Deploy to GitHub Pages
Expand Down

0 comments on commit f0a903f

Please sign in to comment.