Merge pull request #40 from leagueofdevs/dev #39
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
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 |