Skip to content

caffeinelabs/setup-mops

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Mops GitHub Action

Easy way to install Mops in your GitHub Actions workflow.

This action provides caching of Mops packages and toolchain.

Usage

Add the following step to your workflow to install Mops

- uses: dfinity/setup-mops@v1

Example

jobs:
  your-job:
    runs-on: ubuntu-latest
    steps:
      - name: Install mops
        uses: dfinity/setup-mops@v1

Specifying a mops version

steps:
  - uses: dfinity/setup-mops@v1
    with:
      mops-version: 1

Will install latest version of mops 1.x.x.

Publish a package

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

Inputs

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

About

GitHub Action to to set up Mops

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors