Merge pull request #82 from avcopan/static-build #2
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
| name: Build and Upload MESS-Static | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Set up Pixi | |
| uses: prefix-dev/setup-pixi@v0.8.9 | |
| with: | |
| manifest-path: static/pixi.toml | |
| # Build | |
| - name: Build | |
| run: pixi build | |
| working-directory: static/ | |
| # Upload | |
| - name: Upload | |
| if: ${{ github.ref == 'refs/heads/main' && github.repository == 'Auto-Mech/mechtools'}} | |
| run: pixi run upload | |
| env: | |
| ANACONDA_API_KEY: ${{ secrets.ANACONDA_API_KEY }} |