Skip to content

publish to mooncakes #1

publish to mooncakes

publish to mooncakes #1

Workflow file for this run

name: publish-pacakge
run-name: publish to mooncakes
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install
run: curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
- name: moon check
run: |
moon check
moon check --source-dir example/snake
- name: publish
run: |
rm -r example
echo "$env:SECRET" > ~/.moon/credentials.json
moon publish
rm ~/.moon/credentials.json
env:
SECRET: ${{ secrets.MOONCAKES_MOONBITLANG_TOKEN }}