Skip to content

Commit

Permalink
refactor: refactored the pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhavSharmaAtAgoda committed Jun 29, 2024
1 parent 823d507 commit ec94478
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/node.js.release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Build release site and deploy

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
Expand All @@ -24,15 +23,19 @@ jobs:
run: sed -i 's/dev-simple.ghostvaibhav.com/ghostvaibhav.com/g' package.json
- name: Installing dependencies
run: npm install
- name: Setting up Git
run: |
git remote set-url origin https://GhostVaibhav:${{ secrets.PASS }}@github.com/GhostVaibhav/prod-Simple.git
git config --global user.email "[email protected]"
git config --global user.name "Vaibhav Sharma"
- name: Writing to environment variable
run: |
touch .env
echo 'REACT_APP_RECAPTCHA_KEY=${{ secrets.REACT_APP_RECAPTCHA_KEY }}' >> .env
npm install gh-pages --save-dev
- name: Building and deploying the site
run: npm run deploy
- name: Build the website
run: npm run build
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'build'
destination-github-username: 'GhostVaibhav'
destination-repository-name: 'prod-Simple'
user-email: [email protected]
target-branch: main
22 changes: 0 additions & 22 deletions .github/workflows/node.js.yml

This file was deleted.

0 comments on commit ec94478

Please sign in to comment.