Skip to content

Commit 49fc9ef

Browse files
authored
Merge pull request #1 from CodevolveLabs/dev
feat: setup deploy workflow
2 parents 8d98a81 + 9240bd7 commit 49fc9ef

File tree

5 files changed

+375
-27
lines changed

5 files changed

+375
-27
lines changed

.github/workflows/deploy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: de-vri-es/setup-git-credentials@v2
14+
with:
15+
credentials: ${{ secrets.GIT_CREDENTIALS }}
16+
17+
- name: Git setup
18+
run: |
19+
git config --global user.email "meap@cin.ufpe.br"
20+
git config --global user.name "Mateus Elias"
21+
22+
- name: Git fetch
23+
run: |
24+
git fetch --all
25+
git branch -a
26+
27+
- name: Build & Deploy
28+
run: |
29+
npm install
30+
npm run build
31+
npm run deploy

0 commit comments

Comments
 (0)