{"id":22341797,"url":"https://github.com/weaponsforge/firebase-ci","last_synced_at":"2026-04-28T17:02:03.651Z","repository":{"id":126827987,"uuid":"222908835","full_name":"weaponsforge/firebase-ci","owner":"weaponsforge","description":"Testing basic Actions CI for firebase hosting.","archived":false,"fork":false,"pushed_at":"2019-11-20T12:56:07.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T17:45:24.352Z","etag":null,"topics":["devops","firebase","github-actions","webdev"],"latest_commit_sha":null,"homepage":"https://weaponsforge-demo.firebaseapp.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weaponsforge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-20T10:13:22.000Z","updated_at":"2020-01-10T07:19:21.000Z","dependencies_parsed_at":"2023-06-18T05:45:07.612Z","dependency_job_id":null,"html_url":"https://github.com/weaponsforge/firebase-ci","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weaponsforge/firebase-ci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaponsforge%2Ffirebase-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaponsforge%2Ffirebase-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaponsforge%2Ffirebase-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaponsforge%2Ffirebase-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaponsforge","download_url":"https://codeload.github.com/weaponsforge/firebase-ci/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaponsforge%2Ffirebase-ci/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","firebase","github-actions","webdev"],"created_at":"2024-12-04T08:08:15.744Z","updated_at":"2026-04-28T17:02:03.646Z","avatar_url":"https://github.com/weaponsforge.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firebase-ci\n\n\u003e Testing GitHub actions for CI to Firebase Hosting.\n\n\nThe following tutorial discusses how to use GitHub Actions to deploy a basic static web project to Firebase Hosting.\n\n\n### Content\n\n- Prerequisites\n- Steps\n- Forking a Firebase Hosting Web Project with Included Actions\n\n\n\n## Prerequisites\n\n1. **NodeJS**\n   - version 10.16.3 was used for this tutorial\n\n2. **Firebase CLI**  \n   - `npm install -g firebase-tools`\n   - firebase cli version `7.6.2` was used for this tutorial\n\n3. **GitHub account**\n\n4. **Google Account**\n   - A Firebase Hosting web project properly set-up from the online [Firebase Console](https://console.firebase.google.com/).\n\n5. The Firebase Hosting **project files** (with references from # 4) committed in the GitHub account's repository's @master branch.\n   - a default Hosting project can be set-up from the **firebase cli**\n      `firebase init`, choosing only the `Hosting` option.\n\n\n\n## Steps\n\n1. Get your Firebase project's token from the firebase cli  \n`firebase login:ci`\n\n2. Add the token to your GitHub project's **Secrets**\n   - Go to project repository's **Settings** -\u003e **Secrets**\n   - Press the **[Add a new secret]** button\n      - Enter a name for your token, i.e.: `FIREBASE_API_TOKEN`\n      - Paste the value you have copied from **step # 1**\n\n3. Go to your GitHub project's **Actions** page. This can be accessed from the **Actions** tab, or go to: \n   - https://github.com/\u003cGITHUB_ACCNT\u003e/PROJECT_NAME/actions/new\n\n4. Press the **Set up a workflow yourself** button.\n\n5. Paste the following value to the **.yml** file which you will create.\n\n \n\t\tname: Deploy to Firebase Hosting\n\t\t\n\t\ton:\n\t\t  push:\n\t\t    branches: \n\t\t      - master\n\t\t\n\t\tjobs:\n\t\t  deploy:\n\t\t\n\t\t    runs-on: ubuntu-latest\n\t\t\n\t\t    steps:\n\t\t      - name: Checkout the repository\n\t\t        uses: actions/checkout@v1\n\t\t        \n\t\t      - name: Deploy to Firebase\n\t\t        uses: w9jds/firebase-action@master\n\t\t        with:\n\t\t          args: deploy --only hosting\n\t\t        env:\n\t\t          FIREBASE_TOKEN : ${{ secrets.FIREBASE_API_TOKEN }}\n\n\n6. Press the **Start Commit** button.\n   - the yml file will be saved and pushed to the /master branch at  \n   `.github/workflows/main.yml`\n   - Deployment to Firebase Hosting will automatically start\n   - Logs can be viewed from the project's [**[Actions]**](https://github.com/weaponsforge/firebase-ci/actions) tab.\n\n7. Refer to the [**GitHub Action for Firebase**](https://github.com/marketplace/actions/github-action-for-firebase) for a list of other firebase deploy and build options that you can use in the **.yml** file.\n\n\n\n## Forking a Firebase Hosting Web Project with Included Actions\n\nGitHub Actions are automatically disabled when a GitHub project with Actions is forked. This is to give a chance to the developer to set-up requirements (specially for deployment, etc) first.\n\nUpdate the following after Forking this repository:\n\n1.  Refer to the **Prerequisites # 4 - Google Account** - Firebase project.\n   - Open the `.firebaserc` file. Rename the firebase project name listed here to match your firebase project name.\n\n2. Go over the **Steps** section no.'s **# 1, # 2,** and **# 3** to set up the firebase token to your forked GitHub project.\n\n3. Go the the forked repository's **Actions** tab and press the **[I understand my workflows, go ahead and run them]** button to start deployment to *your* Firebase Hosting project.\n\n\n20191120","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaponsforge%2Ffirebase-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweaponsforge%2Ffirebase-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaponsforge%2Ffirebase-ci/lists"}