-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using firelink in GitHub actions #45
Comments
Hello there @yaron1m and thank you for the ticket! I think what you need to do is just run jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm install
- name: Copy packages with Firelink
run: npx firelink
- name: Build
run: npm run build-prod
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: dist
path: dist Stay tuned Regards, |
Thanks @Stradivario! This solution is almost working. It does create the I managed to solve that by running
But, this also fails, because it expects
My temporary solution to this was to also install
Here's what I suggest:
What do you think? |
Hello there @yaron1m ! I just created a PR with i hope that this will be the appropriate way to fix your issue. The command that you are looking for will be:
This command i think will satisfy all 3 needs written
If you do want to revert changes u can use command
If you want just to prepare the environment and do the magic of
Expect a version bump in about an hour! Cheers and please tell me if this command is working for you so we can close that ticket :) Feel free to contact me for any details regarding anything :) Cheers, |
Nice! I will give it a try in the next few days and let you know if this is working :) Thank you for your great work! |
@yaron1m awesome mate i appreciate it a lot!
One thing i didn't answer is that I am preparing now a PR with complete refactoring of the code since i wasn't prepared for such an attention regarding this library and we need to move faster in order to be easy for usage and development. U can track the progress here for the actual refactoring. Library will be refactored using Functional programming approach and i will provide some useful tools like UI that can be added as a Plugin to the system. You can install the new version with Regards! |
I just tested this and it worked great: - name: Install deployment dependencies
run: npm i -g @rxdi/firelink
- name: Run firelink
working-directory: ./firebase/functions
run: firelink --no-runner --leave-changes
- name: Deploy to Firebase Functions
uses: w9jds/firebase-action@master
with:
args: deploy --only functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} Thank you! |
Oh man that looks like "pure ore" i like it how clean it is ! I am glad you create this ticket and help the library to become better ! Thanks ! Cheers! EDIT: I am thinking even to add this example inside the readme so more people will know how to do that ! |
Feel free to open this issue again if needed! Cheers! |
Hi,
I want to deploy my firebase functions from Github Actions.
Until I started using
firelink
I used w9jds/firebase-action, but this does not work with firelink.How can I deploy my firebase functions from GitHub actions using firelink?
Are there plans to create a dedicated action for firelink?
Alternatively, is there an option to run firelink without the actual deployment (i.e. just the file generation)? I would love an option to run
firelink --onlyCopyFiles
and then run the action above.Thanks!
The text was updated successfully, but these errors were encountered: