Merge pull request #147 from umdevclub/feat/merchRoute #181
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: Deployment | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install Packages | |
| run: npm install | |
| - name: Build page | |
| run: npm run build && echo "devclub.ca" > ./build/CNAME | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| deploy_key: ${{ secrets.ACTIONS_DEPLOY_SECRET }} | |
| publish_dir: ./build | |
| - name: Notify on Discord | |
| uses: sarisia/actions-status-discord@v1 | |
| if: "always()" | |
| with: | |
| webhook: ${{ secrets.DISCORD_WEBHOOK }} |