Using the CLI in your CI/CD pipelines

Written By Josh Kalderimis

Last updated About 2 months ago

GitHub Actions

  1. Generate an authentication token

  1. Generate a public/private key pair for firmware signing

  1. Add the https://github.com/nervescloud/upload-nerves-firmware action to your GitHub Action workflow file

- name: Upload firmware to NervesCloud
  uses: nervescloud/upload-nerves-firmware
  with:
    token: ${{ secrets.NERVES_CLOUD_TOKEN }}
    org: MyOrg
    product: my_product
    private-key: ${{ secrets.NERVES_CLOUD_PRIVATE_KEY }}
    public-key: ${{ secrets.NERVES_CLOUD_PUBLIC_KEY }}