Easy way to install Mops in your GitHub Actions workflow.
This action provides caching of Mops packages and toolchain.
Add the following step to your workflow to install Mops
- uses: dfinity/setup-mops@v1jobs:
your-job:
runs-on: ubuntu-latest
steps:
- name: Install mops
uses: dfinity/setup-mops@v1steps:
- uses: dfinity/setup-mops@v1
with:
mops-version: 1Will install latest version of mops 1.x.x.
Learn how to use GitHub Secrets here.
This example publishes a package to the Mops Registry when a GitHub release is created.
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dfinity/setup-mops@v1
with:
identity-pem: ${{ secrets.MOPS_IDENTITY_PEM }}
- name: Publish to the Mops Registry
run: mops publish| Input | Default |
|---|---|
mops-version |
latest |
moc-version |
as specified in mops.toml |
wasmtime-version |
as specified in mops.toml |
pocket-ic-version |
as specified in mops.toml |
identity-pem |