Skip to content

v1.0.67

v1.0.67 #1

Workflow file for this run

on:
push:
# branch:
# main
jobs:
release:
# if: ${{ github.event.head_commit.message =~ '^[vV]\d+\.\d+\.\d+(?:-\w+)?(?:\n.*)?$' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get commit version and body
id: commit
run: |
full_msg="${{ github.event.head_commit.message }}"
version_num="$(echo "$full_msg" | head -n1)"
body="$(echo "$full_msg" | tail -n +2)"
echo "version_num=${version_num:1}" >> $GITHUB_OUTPUT
echo "body=$body" >> $GITHUB_OUTPUT
- name: Setup Rust + UV
uses: ./.github/actions/setup
- name: Publish to crates.io
run: cargo publish
- name: Publish to PyPi
run: maturin publish
- name: Create new repo release
uses: softprops/action-gh-release@v2
with:
body: |
Patch release fixing cargo builds, faulty versions have been yanked
[crates.io release](https://crates.io/crates/skyblock-repo/${{ steps.commit.outputs.version_num }})
[PyPi release](https://pypi.org/project/skyblock-repo/${{ steps.commit.outputs.version_num }})
Add to your project:
```sh
cargo add skyblock-repo@=${{ steps.commit.outputs.version_num }}
```
```
pip install skyblock-repo==${{ steps.commit.outputs.version_num }}
```
${{ steps.commit.outputs.body }}
# test