Skip to content

Merge pull request #16 from malgorzatatanska/feat/action-compositions #13

Merge pull request #16 from malgorzatatanska/feat/action-compositions

Merge pull request #16 from malgorzatatanska/feat/action-compositions #13

Workflow file for this run

name: Deploy to netlify and vercel!
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure node
uses: ./.github/actions/setup-project
- name: Build the app
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: 'Deploy 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 }}
timeout-minutes: 1
- name: Deploy app to Vercel production env
uses: ./.github/actions/deploy-vercel
with:
mode: 'production'
vercel-token: ${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}