From 61a5df7b36ceb06ee03d0ccbda1bddfd9c972497 Mon Sep 17 00:00:00 2001 From: Freeman <105403280+F-WRunTime@users.noreply.github.com> Date: Thu, 10 Oct 2024 09:15:53 -0600 Subject: [PATCH] Updating Soldeer Release with a Version to a specific project (#12) * modified: .github/workflows/master-push.yml - Add additional argument to set the version of the pushed soldeer account new file: .gitignore - Ignore the zip archive produced by soldeer push dry-run mode modified: scripts/soldeer_publish.expect - Update expect script to use an additional argument for setting the pushed version of the cheatcodes to soldeer * modified: ../.github/workflows/master-push.yml - Soldeer push will now only push the sol files found in src that are relevant to a release. - Fixes warnings and resolves the problem of trying to push while avoinding using --skip-warnings --- .github/workflows/master-push.yml | 10 +++------- .gitignore | 2 ++ scripts/soldeer_publish.expect | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/master-push.yml b/.github/workflows/master-push.yml index c2a51a1..d274a38 100644 --- a/.github/workflows/master-push.yml +++ b/.github/workflows/master-push.yml @@ -22,13 +22,9 @@ jobs: - name: 'Run Expect Script' shell: bash run: | - script -q -c "expect scripts/soldeer_publish.expect ${{ vars.SOLDEER_EMAIL }} ${{ secrets.SOLDEER_PASSWORD }}" /dev/null - - - name: 'Check out code' - uses: actions/checkout@v3 - with: - ref: ${{ github.event.push.head.sha }} - fetch-depth: 0 + pushd src > /dev/null + script -q -c "expect scripts/soldeer_publish.expect ${{ vars.SOLDEER_EMAIL }} ${{ secrets.SOLDEER_PASSWORD }} ${{ github.event.push.head.sha }}" /dev/null + popd > /dev/null - name: 'Create release' env: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f03e6a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore Dry-run artifacts +*.zip diff --git a/scripts/soldeer_publish.expect b/scripts/soldeer_publish.expect index 3c4cd5a..0904325 100755 --- a/scripts/soldeer_publish.expect +++ b/scripts/soldeer_publish.expect @@ -48,7 +48,7 @@ expect { expect eof # Command to push after login -set push_command "forge soldeer push" +set push_command "forge soldeer push kontrol-cheatcodes~[lindex $argv 2]" # Start the push process spawn bash -c "$push_command"