AUTOMATE your code deploys: Firebase Hosting & Github Actions

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 29

  • @elilopezdev
    @elilopezdev  3 года назад +1

    The git managing tool I'm using is called GitKraken. Use my invite link and win a $100 Amazon gift card 😮: www.gitkraken.com/invite/c4SJ1sK3

  • @ElNargul
    @ElNargul 3 года назад +2

    Thanks to your videos i've finally quit my job and start my own project. I hope your channel really grow up in a short period of time, it's just a matter of time for people to know your channel and have a bigger community.
    Thank you very much for all the effort you put into these videos.

  • @northstarHQ
    @northstarHQ 4 года назад +3

    Very helpful thank you

    • @elilopezdev
      @elilopezdev  4 года назад +1

      Glad to hear!

    • @northstarHQ
      @northstarHQ 4 года назад +2

      @@elilopezdev thank you for the effort.. could you also show us the same process without the third party firebase action for deploying .. i mean a manual github action for deploying .. just asking :) that would be of great help

  • @MrApoloVictor
    @MrApoloVictor 3 года назад +4

    What is the name of this command interface program, branch / tag, graphic and commit message that appears in your video?

    • @elilopezdev
      @elilopezdev  3 года назад +5

      It is GitKraken, its a user interface for managing Git just like SourceTree for example. Its awesome! Heres the link: www.gitkraken.com/

  • @sajedsoliman4780
    @sajedsoliman4780 3 года назад

    Thank you so much. so helpful 💗

  • @MuhammadBilal-fy6xw
    @MuhammadBilal-fy6xw 3 года назад +1

    Well job

  • @kdjd6768
    @kdjd6768 Год назад

    So is it necessary to keep the project stored locally or keeping it on GitHub is enough

  • @santunu23
    @santunu23 2 года назад +1

    Thank you so much for your wonderful video. In the video, you use a git GUI tool, probably a vs code extension. What's the extension name? Thanks in Advance.

    • @elilopezdev
      @elilopezdev  2 года назад

      Hey the git GUI tool I use is GitKraken. I actually have a referral link, you can check it out here: www.gitkraken.com/invite/c4SJ1sK3

  • @lmbgott
    @lmbgott 3 года назад

    I have a good deploy but firebase says: "This file does not exist and there was no index.html found in the current directory or 404.html in the root directory."

  • @mthaha2735
    @mthaha2735 3 года назад +1

    Can you also make a video on GitHub pages?

    • @elilopezdev
      @elilopezdev  3 года назад +1

      For sure! Thanks for suggesting 🤔🎥!

  • @FinnDeJong
    @FinnDeJong 3 года назад

    Does this work the same for Reactjs apps? I noticed that the build file is not name dist but 'build' Is the workflow still the same?

    • @jorgerangel1231
      @jorgerangel1231 3 года назад +1

      Just change the public directory to build

  • @sumits6442
    @sumits6442 3 года назад +1

    Hi Eli, how are you setting the environment variables of Firebase?

    • @elilopezdev
      @elilopezdev  3 года назад +1

      Hello! For the Firebase token I set it in the "GitHub Secrets" area of my repository at minute 6:00
      But if you mean the environment variables from your project's .env file or system variables, you can also register them as "GitHub Secrets" and pass them in during your build step in the Github Action configuration file.
      I created this sample file with more "env" variables in case you want to take a look: github.com/EnterFlash/firebase-github-action-sample/blob/main/main.yml

    • @sumits6442
      @sumits6442 3 года назад +1

      @@elilopezdev thank you so much that's exactly what I was trying to understand.

    • @elilopezdev
      @elilopezdev  3 года назад

      @@sumits6442 Glad to help!

    • @elilopezdev
      @elilopezdev  3 года назад

      @@sumits6442 Glad to help!

  • @nishankpriydarshi5200
    @nishankpriydarshi5200 3 года назад

    what is that awsm looking map on @7:00 and how you created it

  • @thechaoslp2047
    @thechaoslp2047 2 года назад

    Solid vid, but I think using firebase init hosting:github and letting the cli walk you through it is easier and simpler

  • @kevlarkode
    @kevlarkode 3 года назад

    What that GUI for github ?

  • @paulomatew
    @paulomatew 2 года назад +2

    # PAY ATTENTION TO BRANCH NAME, HERE IT'S @MASTER, not @MAIN
    # script below
    name: Build and Deploy to Firebase Hosting
    # Controls when the workflow will run
    on:
    # Triggers the workflow on push or pull request events but only for the "master" branch
    push:
    branches: [ "master" ]
    pull_request:
    branches: [ "master" ]
    # Allows you to run this workflow manually from the Actions tab
    workflow_dispatch:
    # A workflow run is made up of one or more jobs that can run sequentially or in parallel
    jobs:
    # This workflow contains a single job called "build"
    build:
    # The type of runner that the job will run on
    name: Build
    runs-on: ubuntu-latest
    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    - name: Checkout repository
    uses: actions/checkout@master
    - name: Install dependencies
    run: npm ci
    - name: Build project
    run: npm run build
    - name: Archive production artifact
    uses: actions/upload-artifact@master
    with:
    name: dist
    path: dist
    deploy:
    name: Deploy
    needs: build
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repository
    uses: actions/checkout@master
    - name: Download arctifact
    uses: actions/download-artifact@master
    with:
    name: dist
    path: dist
    - name: Deploy to Firebase Hosting
    uses: w9jds/firebase-action@master
    with:
    args: deploy --only hosting
    env:
    FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

    • @Krkeek0
      @Krkeek0 Год назад

      thanks!!

    • @soumyasagar2305
      @soumyasagar2305 Год назад

      hey there. I am using yarn. So will there be any changes or I have to keep it same.

  • @armans4306
    @armans4306 2 года назад

    your github link is not working