Skip to content

Commit

Permalink
Deploy to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Sep 4, 2023
1 parent 7750adf commit f7eae5a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,30 @@ jobs:
run: npm run ts:check
- name: Check formatting
run: npm run prettier:check

- name: Build project
run: npm run build
- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist

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

0 comments on commit f7eae5a

Please sign in to comment.