# Is it possible to deploy an app on the IC network using GitHub workflows with a local identity that has cycles but no wallet configured?

**URL:** <https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988>\
**Category:** Developers\
**Created:** [October 9, 2024, 10:21am UTC](https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988 "2024-10-09T10:21:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veercodeprog](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@Veercodeprog](https://forum.dfinity.org/u/Veercodeprog)\
**Post date:** [October 9, 2024, 10:21am UTC](https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988/1 "2024-10-09T10:21:37Z")

</div>

my workflow: [hello-workflow-ic-deploy/.github/workflows/canister\_test\_suite\_on\_any\_push.yml at 64a455b44b5187074b2a2c8ae791a7566ab93524 · Veercodeprog/hello-workflow-ic-deploy · GitHub](https://github.com/Veercodeprog/hello-workflow-ic-deploy/blob/64a455b44b5187074b2a2c8ae791a7566ab93524/.github/workflows/canister_test_suite_on_any_push.yml)

Is it possible to deploy an app on the IC network using GitHub workflows with a local identity that has cycles but no wallet configured?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [October 9, 2024, 12:40pm UTC](https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988/2 "2024-10-09T12:40:55Z")

</div>

Depends a bit on how you define certain words.

Assuming ‘deploy’ means `dfx canister install` or equivalent then you don’t even need cycles. As long as the identity is a controller of the target canister(s) you can install new wasms.

If ‘deploy’ also can mean creating the canister: If ‘has cycles’ means that the identity holds cycles on the cycles ledger, then it will work. If ‘has cycles’ means something else, please clarify.

Looking at your workflow I’m a bit confused with the current state. You seem to mix up networks and are creating a canister locally but then don’t use it for anything since `dfx deploy` then targets `--network ic`. Is it just WIP?

---

<div class="post-metadata">

**Author:** ![Veercodeprog](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@Veercodeprog](https://forum.dfinity.org/u/Veercodeprog)\
**Post date:** [October 9, 2024, 12:52pm UTC](https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988/3 "2024-10-09T12:52:02Z")

</div>

yes it wip.  
i think i can comment the create canister section in workflow, and directly want to deploy.  
i have cycles in my local identity which i check using: dfx cycles balance --network ic.  
but github workflow uses its own identity and has no cycles in it , i want to somehow uses my local identity cycles in github workflow to deploy.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [October 9, 2024, 2:37pm UTC](https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988/4 "2024-10-09T14:37:31Z")

</div>

This looks correct:

```auto
 echo "${{ secrets.FUEL_DAO_CANISTER_CONTROLLER_PRIVATE_KEY }}" > actions_identity.pem
nix-shell --run "dfx identity import --disable-encryption actions actions_identity.pem"

```

As an alternative, [here](https://github.com/dfinity/portal/blob/95c67a5cfe201e4e5cb79f3cf5d18fe16498cd8c/.github/workflows/cd.yml#L39-L44) is how we do it in CI for [internetcomputer.org](http://internetcomputer.org).

---

<div class="post-metadata">

**Author:** ![Veercodeprog](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@Veercodeprog](https://forum.dfinity.org/u/Veercodeprog)\
**Post date:** [October 9, 2024, 3:15pm UTC](https://forum.dfinity.org/t/is-it-possible-to-deploy-an-app-on-the-ic-network-using-github-workflows-with-a-local-identity-that-has-cycles-but-no-wallet-configured/35988/5 "2024-10-09T15:15:30Z")

</div>

yes ,  
i was not changing identity ,  
Thanks
