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"