raidski20 is deploying Leetify-Kifahi #14
This file contains 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 & deploy Leetify-Kifahi" | |
run-name: ${{ github.actor }} is deploying Leetify-Kifahi | |
on: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: "build-&-deploy" | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Setup Node.js" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: "Install dependencies" | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: "Deploy to Netlify" | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: "./dist" | |
production-branch: master | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: "Deploying from GitHub Actions" | |
enable-pull-request-comment: false | |
enable-commit-comment: true | |
overwrites-pull-request-comment: true | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |