prerelease fix

This commit is contained in:
Chris Titus 2024-07-18 16:29:02 -05:00
parent bfbd947cbd
commit 6d775107ad
3 changed files with 8 additions and 6 deletions

View File

@ -18,15 +18,15 @@ jobs:
id: extract_version id: extract_version
run: | run: |
version=$(date +"%Y.%m.%d") version=$(date +"%Y.%m.%d")
echo "version=$version" >> $env:GITHUB_ENV echo "version=$version" >> GITHUB_ENV
shell: bash shell: bash
- name: Create and Upload Release - name: Create and Upload Release
id: create_release id: create_release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
tag_name: ${{ env.VERSION }} tag_name: ${{ env.version }}
name: Pre-Release ${{ env.VERSION }} name: Pre-Release ${{ env.version }}
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.VERSION }}/linutil)" body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.VERSION }}/linutil)"
append_body: false append_body: false
files: | files: |

View File

@ -36,3 +36,5 @@ jobs:
toolchain: stable toolchain: stable
- name: Build - name: Build
run: cargo build --release --verbose run: cargo build --release --verbose

View File

@ -31,9 +31,9 @@ pub const THEMES: [Theme; 2] = [
]; ];
pub fn get_theme() -> &'static Theme { pub fn get_theme() -> &'static Theme {
return &THEMES[unsafe {THEME_IDX} ]; &THEMES[unsafe { THEME_IDX } ]
} }
pub fn set_theme(idx: usize){ pub fn set_theme(idx: usize){
unsafe {THEME_IDX = idx}; unsafe { THEME_IDX = idx };
} }