diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..87f98f4 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,25 @@ +on: + push: + branches: + - master # or the name of your default branch + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' # or your preferred Node.js version + + - name: Install Vercel CLI + run: npm install -g vercel + + - name: Deploy to Vercel + run: vercel . --token ${{ secrets.VERCEL_TOKEN }} --confirm # You might need the --confirm flag if you haven't set up the project yet + env: + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} \ No newline at end of file