From 8845a8a6c6f11f5ab35b6d982014454aa91c17b6 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 8 Jul 2024 18:31:48 +0100 Subject: [PATCH] chore: use the correct branch in packaging step To get the version numbers right on the packages, the branch or tag needs to be the same in both jobs. Also rename the step and remove the AWS variables, which are not necessary for packaging. --- .github/workflows/build-release-artifacts.yml | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-release-artifacts.yml b/.github/workflows/build-release-artifacts.yml index 05010b5553..17a816958b 100644 --- a/.github/workflows/build-release-artifacts.yml +++ b/.github/workflows/build-release-artifacts.yml @@ -64,18 +64,13 @@ jobs: # This job isn't necessary, but it's useful for debugging the packaging process for the real release # workflow, just in case any issues are ever encountered there. package: - name: publish and release + name: package artifacts runs-on: ubuntu-latest needs: [build] - env: - AWS_ACCESS_KEY_ID: ${{ secrets.S3_DEPLOY_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DEPLOY_AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: eu-west-2 steps: - uses: actions/checkout@v4 with: - fetch-depth: "0" - token: ${{ secrets.VERSION_BUMP_COMMIT_PAT }} + ref: ${{ inputs.tag || inputs.branch }} - uses: actions/download-artifact@master with: name: safe_network-x86_64-pc-windows-msvc @@ -100,22 +95,12 @@ jobs: with: name: safe_network-aarch64-unknown-linux-musl path: artifacts/aarch64-unknown-linux-musl/release - # It's possible to `cargo install` just, but it's very slow to compile on GHA infra. - # Therefore we just pull the binary from the Github Release. - - name: install just - shell: bash - run: | - curl -L -O $JUST_BIN_URL - mkdir just - tar xvf just-1.25.2-x86_64-unknown-linux-musl.tar.gz -C just - rm just-1.25.2-x86_64-unknown-linux-musl.tar.gz - sudo mv just/just /usr/local/bin - rm -rf just - sudo apt-get install -y tree + - uses: cargo-bins/cargo-binstall@main + - shell: bash + run: cargo binstall --no-confirm just - name: package artifacts shell: bash run: | - tree artifacts just package-release-assets "faucet" just package-release-assets "nat-detection" just package-release-assets "node-launchpad"