Skip to content

Commit

Permalink
Updating Soldeer Release with a Version to a specific project (#12)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
F-WRunTime authored Oct 10, 2024
1 parent bb7ec51 commit 61a5df7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/master-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore Dry-run artifacts
*.zip
2 changes: 1 addition & 1 deletion scripts/soldeer_publish.expect
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 61a5df7

Please sign in to comment.