Skip to content

Create Core Release #27

Create Core Release

Create Core Release #27

Workflow file for this run

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