Merge pull request #6 from fermyon/add-metadata #4
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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "v[0-9]+.[0-9]+" | |
| tags: | |
| - "v*" | |
| env: | |
| RUST_VERSION: 1.86 | |
| jobs: | |
| crates: | |
| name: Publish to crates.io | |
| runs-on: ubuntu-latest | |
| if: | | |
| startsWith(github.ref, 'refs/tags/v') && | |
| github.repository_owner == 'fermyon' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Rust toolchain | |
| shell: bash | |
| run: | | |
| rustup toolchain install ${{ env.RUST_VERSION }} | |
| rustup default ${{ env.RUST_VERSION }} | |
| - name: Publish wasi-hyperium to crates.io | |
| working-directory: ./ | |
| run: | | |
| cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} |