-
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.
Merge pull request #1 from CodevolveLabs/dev
feat: setup deploy workflow
- Loading branch information
Showing
5 changed files
with
375 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: de-vri-es/setup-git-credentials@v2 | ||
with: | ||
credentials: ${{ secrets.GIT_CREDENTIALS }} | ||
|
||
- name: Git setup | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Mateus Elias" | ||
- name: Git fetch | ||
run: | | ||
git fetch --all | ||
git branch -a | ||
- name: Build & Deploy | ||
run: | | ||
npm install | ||
npm run build | ||
npm run deploy |
Oops, something went wrong.