Skip to content

Commit

Permalink
chore: Merge branch 'release/v0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuthor committed Jan 17, 2024
2 parents 906b36b + d56313e commit be87b18
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 31 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ jobs:
components: rustfmt, clippy

- name: Set KMS version
if: inputs.kms_version
run: |
if [[ -v VERSION ]]; then
sed -i "s/4.11.0/${VERSION}/g" Cargo.toml
sed -i "s/4.11.0/${VERSION}/g" build.rs
else
echo "Bash variable VERSION does not exist"
fi
sed -i "s/4.11.0/${VERSION}/g" Cargo.toml
sed -i "s/4.11.0/${VERSION}/g" build.rs
env:
VERSION: ${{ inputs.kms_version }}

Expand Down Expand Up @@ -117,29 +114,22 @@ jobs:
zip -r ${{ matrix.archive_name }}.zip ${{ matrix.archive_name }}
- name: Push to package.cosmian.com
if: inputs.kms_version
run: |
set -x
if [[ -v VERSION ]]; then
DESTINATION_DIR=/mnt/package/kms/last_build/$VERSION
ssh [email protected] mkdir -p $DESTINATION_DIR
scp ${{ matrix.archive_name }}.zip [email protected]:$DESTINATION_DIR/
else
echo "Bash variable VERSION does not exist"
fi
DESTINATION_DIR=/mnt/package/kms/last_build/$VERSION
ssh [email protected] mkdir -p $DESTINATION_DIR
scp ${{ matrix.archive_name }}.zip [email protected]:$DESTINATION_DIR/
env:
VERSION: ${{ inputs.kms_version }}

- name: Push to package.cosmian.com - tags
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') && inputs.kms_version
run: |
set -x
if [[ -v VERSION ]]; then
DESTINATION_DIR=/mnt/package/kms/$VERSION
ssh [email protected] mkdir -p $DESTINATION_DIR
scp ${{ matrix.archive_name }}.zip [email protected]:$DESTINATION_DIR/
else
echo "Bash variable VERSION does not exist"
fi
DESTINATION_DIR=/mnt/package/kms/$VERSION
ssh [email protected] mkdir -p $DESTINATION_DIR
scp ${{ matrix.archive_name }}.zip [email protected]:$DESTINATION_DIR/
env:
VERSION: ${{ inputs.kms_version }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
src/main.rs
/target
./.cargo_check
10 changes: 2 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@

All notable changes to this project will be documented in this file.

## [0.1.2] - 2024-01-17
## [0.1.3] - 2024-01-17

### Ci

- Fix check if KMS version variable exists

## [0.1.1] - 2024-01-17

### Ci

- Fix workflow_dispatch input argument syntax
- Detect input workflow_dispatch

## [0.1.0] - 2024-01-17

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kms_gui"
version = "0.1.1"
version = "0.1.3"
edition = "2021"


Expand Down

0 comments on commit be87b18

Please sign in to comment.