Skip to content

Commit

Permalink
fix: updated deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dcpesses committed Feb 12, 2024
1 parent d6ad550 commit 5ee8c78
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: 🏗 Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
Expand All @@ -40,13 +40,13 @@ jobs:
run: npm run test:ci

# Upload dist artifacts
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

# Upload coverage artifacts
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info
Expand All @@ -57,12 +57,12 @@ jobs:
runs-on: ubuntu-latest
steps:
# Download coverage artifacts
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: coverage

- name: 📈 Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
Expand All @@ -78,17 +78,23 @@ jobs:
# Manual deployment
# See https://devblogs.microsoft.com/devops/i-need-manual-approvers-for-github-actions-and-i-got-them-now/
environment:
name: prod
# name: prod
url: https://dcpesses.github.io/vite-react-ts-gh/
steps:
# Download dist artifacts
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- run: pwd

- run: ls -l

- run: ls -l dist

- name: 🚀 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist

0 comments on commit 5ee8c78

Please sign in to comment.