diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1b7331..ae356ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,15 +48,15 @@ jobs: - id: get_version run: echo "VERSION=$(cat ./version/version)" >> $GITHUB_OUTPUT shell: bash - - uses: actions/cache@v1 + - uses: actions/cache@master with: path: ~/.cargo/registry key: '${{ runner.os }}-cargo-registry-${{ hashFiles(''**/Cargo.lock'') }}' - - uses: actions/cache@v1 + - uses: actions/cache@master with: path: ~/.cargo/git key: '${{ runner.os }}-cargo-index-${{ hashFiles(''**/Cargo.lock'') }}' - - uses: actions/cache@v1 + - uses: actions/cache@master with: path: target key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} @@ -117,7 +117,7 @@ jobs: toolchain: stable override: true - id: create_release - uses: actions/create-release@v1.0.0 + uses: actions/create-release@latest env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: @@ -125,7 +125,7 @@ jobs: release_name: 'Release ${{ steps.get_version.outputs.VERSION }}' draft: false prerelease: false - - uses: actions/upload-release-asset@v1.0.1 + - uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: @@ -133,7 +133,7 @@ jobs: asset_path: ./${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}-x86_64-unknown-linux-gnu/easyeda_to_kicad_lib_ui asset_name: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}-x86_64-unknown-linux-gnu asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1.0.1 + - uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: @@ -141,7 +141,7 @@ jobs: asset_path: ./${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}-x86_64-apple-darwin/easyeda_to_kicad_lib_ui asset_name: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}-x86_64-apple-darwin asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1.0.1 + - uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: @@ -149,7 +149,7 @@ jobs: asset_path: ./${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}-aarch64-apple-darwin/easyeda_to_kicad_lib_ui asset_name: ${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}-aarch64-apple-darwin asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1.0.1 + - uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: diff --git a/Cargo.lock b/Cargo.lock index 4405971..777cf0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -963,7 +963,7 @@ dependencies = [ [[package]] name = "easyeda_to_kicad_lib_ui" -version = "1.1.0" +version = "1.1.2" dependencies = [ "arboard", "downloader", diff --git a/Cargo.toml b/Cargo.toml index caac437..4f556e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "easyeda_to_kicad_lib_ui" -version = "1.1.0" +version = "1.1.2" authors = ["Markus Krause "] edition = "2021" rust-version = "1.72" diff --git a/src/app.rs b/src/app.rs index 12feaa1..174190c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -13,6 +13,8 @@ use regex::Regex; use subprocess::Exec; use tempdir::TempDir; +const VERSION: &str = env!("CARGO_PKG_VERSION"); + /// We derive Deserialize/Serialize so we can persist app state on shutdown. #[derive(serde::Deserialize, serde::Serialize)] #[serde(default)] // if we add new fields, give them default values when deserializing old state @@ -475,6 +477,7 @@ impl eframe::App for MyApp { ui.with_layout(egui::Layout::bottom_up(egui::Align::LEFT), |ui| { powered_by(ui); + ui.label(format!("Version: v{}", VERSION)); egui::warn_if_debug_build(ui); });