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

Setup DFX environment

v0.2.4 Pre-release

Setup DFX environment

box

Setup DFX environment

Setup a dfx environment and add it to the PATH

Installation

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

              

- name: Setup DFX environment

uses: aviate-labs/setup-dfx@v0.2.4

Learn more about this action in aviate-labs/setup-dfx

Choose a version

Setup The Internet Computer SDK

This action sets up a dfx environment, also includes moc and vessel.

! Only supports Ubuntu virtual environments.

Usage

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aviate-labs/setup-dfx@v0.2.3
  with:
    vessel-version: 0.6.2
- run: for i in src/*.mo ; do $(vessel bin)/moc $(vessel sources) --check $i ; done

Deploying

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aviate-labs/setup-dfx@v0.2.3
  with:
    dfx-version: 0.8.1
  env:
    DFX_IDENTITY_PEM: ${{ secrets.DFX_IDENTITY_PEM }}
- run: |
    dfx identity use action
    dfx deploy --network ic --no-wallet

Possible Improvements

License

The scripts and documentation in this project are released under the MIT License.