diff --git a/.github/workflows/build-release-artifacts.yml b/.github/workflows/build-release-artifacts.yml index ba3039197a..5d6f61f5fd 100644 --- a/.github/workflows/build-release-artifacts.yml +++ b/.github/workflows/build-release-artifacts.yml @@ -8,6 +8,10 @@ on: type: string required: true default: main + tag: + description: The tag to build. + type: string + required: false # Copied from `release.yml` # During the build step, the env variable has to be manually sent to the containers for cross platform builds. @@ -43,7 +47,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ inputs.branch }} + ref: ${{ inputs.tag || inputs.branch }} - uses: dtolnay/rust-toolchain@stable # cargo-binstall will try and use pre-built binaries if they are available and also speeds up # installing `cross` diff --git a/test.sh b/test.sh deleted file mode 100755 index 3b5662f3c5..0000000000 --- a/test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -BUCKET_NAME="your-bucket-name" -DESTINATION_PATH="s3://nat-detection/nat-detection-0.1.0-aarch64-unknown-linux-musl.zip" -LOCAL_FILE_PATH="path/to/local/file" - -if aws s3 ls "$DESTINATION_PATH" > /dev/null 2>&1; then - echo "Error: Destination file already exists in the bucket." - exit 1 -else - echo "will upload" -fi