add home link #88
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| types: | |
| - closed | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Install Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.x | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build Project | |
| env: | |
| VITE_EMAIL_API_KEY: ${{ secrets.VITE_EMAIL_API_KEY }} | |
| run: npm run build | |
| - name: Upload artifact to enable deployment | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: production-files | |
| path: ./dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| 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.CI_CD_TOKEN }} | |
| publish_dir: ./dist |