[META] Make CLI Release Workflow Better

This commit is contained in:
Ben C 2023-05-13 18:05:27 -04:00
parent 2cd670a853
commit db9745ac4e
No known key found for this signature in database
GPG Key ID: 556064B755159BBC
2 changed files with 8 additions and 20 deletions

View File

@ -4,21 +4,6 @@ on:
workflow_dispatch:
jobs:
# I hate this etc
get_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.pkg-version.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- 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_cli") | .version')" >> $GITHUB_OUTPUT
release:
permissions:
contents: write
@ -26,7 +11,6 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-20.04, windows-latest]
needs: get_version
runs-on: ${{ matrix.platform }}
steps:
@ -50,6 +34,10 @@ jobs:
env:
ANALYTICS_API_KEY: ${{ secrets.ANALYTICS_API_KEY }}
- name: Get Version
id: get_version
run: echo "version=$(./target/release/owmods version)" >> $GITHUB_OUTPUT
- name: Generate Dist Folder
if: matrix.platform == 'ubuntu-20.04'
run: cargo xtask dist_cli
@ -67,13 +55,13 @@ jobs:
- name: Upload CLI
uses: softprops/action-gh-release@v1
with:
name: Outer Wilds Mod Manager CLI Version ${{ needs.get_version.outputs.version }}
tag_name: cli_v${{ needs.get_version.outputs.version }}
name: Outer Wilds Mod Manager CLI Version ${{ steps.get_version.outputs.version }}
tag_name: cli_v${{ steps.get_version.outputs.version }}
fail_on_unmatched_files: false
generate_release_notes: false
draft: true
files: |
owmods.tar.zst
target/debian/owmods-cli_${{ needs.get_version.outputs.version }}_amd64.deb
target/debian/owmods-cli_${{ steps.get_version.outputs.version }}_amd64.deb
target/release/owmods
target/release/owmods.exe

View File

@ -24,7 +24,7 @@ const LogList = memo(function LogList(props: LogListProps) {
itemContent={(_, data) => (
<LogLine virtuosoRef={virtuoso} port={props.port} line={data[0]} count={data[1]} />
)}
atBottomThreshold={100}
atBottomThreshold={1000}
followOutput
alignToBottom
/>