-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
823d507
commit ec94478
Showing
2 changed files
with
13 additions
and
32 deletions.
There are no files selected for viewing
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
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: | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.