Skip to content

Commit

Permalink
Merge pull request #22 from tomrpl/feat/env
Browse files Browse the repository at this point in the history
feat(env): env trouble fixed
  • Loading branch information
tomrpl authored Aug 1, 2024
2 parents 3fb617d + 9125167 commit 1be3981
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Build and Deploy to Netlify
# name: Build and Deploy to Netlify

on:
push:
branches:
- main
pull_request:
branches:
- main
# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
# jobs:
# build:
# name: Build and Deploy
# runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.3.0" # Use the Node.js version specified in your project
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: "22.3.0" # Use the Node.js version specified in your project

- name: Install dependencies
run: yarn install
# - name: Install dependencies
# run: yarn install

- name: Build project
run: yarn build
# - name: Build project
# run: netlify build # Check netilify doc

- name: Deploy to Netlify
run: npx netlify deploy --dir=build --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
# - name: Deploy to Netlify
# run: npx netlify deploy --dir=build --prod
# env:
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 comments on commit 1be3981

Please sign in to comment.