Update action
This commit is contained in:
parent
40af1fcacb
commit
8412c6bc9e
2 changed files with 16 additions and 14 deletions
24
.github/workflows/main.yaml
vendored
24
.github/workflows/main.yaml
vendored
|
|
@ -1,21 +1,19 @@
|
||||||
name: Deploy site
|
name: Deploy to Firebase Hosting
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
firebase-deploy:
|
build_and_deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout current branch with lfs
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@master
|
- run: npm install && npm run build
|
||||||
- name: Build site
|
- uses: FirebaseExtended/action-hosting-deploy@v0
|
||||||
run: |
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
- name: Deploy html
|
|
||||||
uses: w9jds/firebase-action@master
|
|
||||||
with:
|
with:
|
||||||
args: deploy --only hosting:sdf2d-schmelczer-dev --project schmelczer-dev
|
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SCHMELCZER_DEV }}'
|
||||||
|
channelId: live
|
||||||
|
projectId: schmelczer-dev
|
||||||
env:
|
env:
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
FIREBASE_CLI_PREVIEWS: hostingchannels
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
{
|
{
|
||||||
"hosting": {
|
"hosting": {
|
||||||
"public": "dist",
|
"public": "dist",
|
||||||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
|
"ignore": [
|
||||||
|
"firebase.json",
|
||||||
|
"**/.*",
|
||||||
|
"**/node_modules/**"
|
||||||
|
],
|
||||||
"site": "sdf2d-schmelczer-dev",
|
"site": "sdf2d-schmelczer-dev",
|
||||||
"rewrites": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue