Skip to content

Commit ff68c8d

Browse files
authored
Create deploy.yml
Acesso ao token para atualização.
1 parent a70bef0 commit ff68c8d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Firebase
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Baixar código
14+
uses: actions/checkout@v3
15+
16+
- name: Configurar Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Instalar Firebase CLI
22+
run: npm install -g firebase-tools
23+
24+
- name: Fazer deploy
25+
run: firebase deploy --only hosting --token "${{ secrets.FIREBASE_TOKEN }}"

0 commit comments

Comments
 (0)