Create Core Release #27
This file contains 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: Create Core Release | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Setup Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ${{ runner.os }}-rust-cache-${{ hashFiles('Cargo.lock') }} | |
- name: Get Package Version | |
id: pkg-version | |
run: echo "version=$(cargo metadata --no-deps --format-version=1 --no-default-features | jq -r '.packages[] | select(.name=="owmods_core") | .version')" >> $GITHUB_OUTPUT | |
- name: Build Core | |
run: cargo package -p owmods_core | |
- name: Upload Core | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: Outer Wilds Mod Manager Core Version ${{ steps.pkg-version.outputs.version }} | |
tag_name: core_v${{ steps.pkg-version.outputs.version }} | |
generate_release_notes: false | |
draft: true | |
files: | | |
target/package/owmods_core-${{ steps.pkg-version.outputs.version }}.crate |