Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

v0.3.1 (#14)

v0.3.1 (#14) #15

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Setup | Dasel
run: |
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep linux_amd64 | grep -v .gz | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
mv ./dasel /usr/local/bin/dasel
- name: Cargo | Publish
run: |
cargo publish -p bevy_rtc_macros --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
VERSION=$(cat Cargo.toml | dasel -r toml 'workspace.package.version')
sed -i 's/{ path = "..\/bevy_rtc_macros" }/'"$VERSION"'/' bevy_rtc/Cargo.toml
cargo publish -p bevy_rtc --allow-dirty --token ${{ secrets.CARGO_REGISTRY_TOKEN }}