v0.12.0 #37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| release: | |
| types: [released] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install | |
| run: | | |
| curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash | |
| echo "$HOME/.moon/bin" >> $GITHUB_PATH | |
| - name: moon version | |
| run: | | |
| moon version --all | |
| moonrun --version | |
| - name: moon check | |
| run: moon check --deny-warn | |
| - name: moon info | |
| run: | | |
| moon info | |
| git diff --exit-code | |
| - name: moon test | |
| run: | | |
| moon test | |
| - name: format diff | |
| run: | | |
| moon fmt | |
| git diff --exit-code | |
| - name: publish | |
| run: | | |
| echo $SECRET > ~/.moon/credentials.json | |
| moon publish | |
| rm ~/.moon/credentials.json | |
| env: | |
| SECRET: ${{ secrets.MOONCAKES_MOONBITLANG_TOKEN }} |