Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

GitHub Action for Juno

v0.0.9

GitHub Action for Juno

box

GitHub Action for Juno

Enable arbitrary actions with the Juno CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Action for Juno

uses: junobuild/[email protected]

Learn more about this action in junobuild/juno-action

Choose a version

Juno Action

This GitHub Action for Juno enables arbitrary actions with the command-line client.

Environment variables

  • JUNO_TOKEN: The token to use for authentication. It can be generated through Juno's console. Prefer a controller with "Read-write" permission rather than administrator.

Example

To deploy a release of your dapp to Juno with a GitHub Action:

name: Deploy to Juno

on:
  release:
    types: [released]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v3

      - uses: actions/setup-node@v3
        with:
          node-version: "18"

      - name: Install Dependencies
        run: npm ci

      - name: Build
        run: npm run build

      - name: Deploy to Juno
        uses: buildwithjuno/juno-action@main
        with:
          args: deploy
        env:
          JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }}

License

MIT © David Dal Busco

Credits

This project is a fork of w9jds/firebase-action