swanky-cli icon indicating copy to clipboard operation
swanky-cli copied to clipboard

`init` should generate a simple CI script that compiles and deploys contracts on main branch

Open codespool opened this issue 2 years ago • 3 comments

Overview (What and Why)

New projects should have an (optional) CI pipeline added to them. Pipeline should compile and deploy the included contracts to swanky-node

How

  • [ ] add template for CI pipeline
  • [ ] add prompt on init and copy template if confirmed

Definition of Done

  • [ ] Above is implemented and merged
  • [ ] Docs updated

Open Issues and Blockers

codespool avatar Feb 24 '23 12:02 codespool

Is this resolved by PR https://github.com/AstarNetwork/swanky-cli/pull/122?

Or something else?

shunsukew avatar Mar 28 '23 01:03 shunsukew

Having deploy scripts written in TS by default must be useful, but don't think we can call it CI. Idea is TS script for deployment by default in scripts folder, executable by swanky contract run "filename", users can add scripts under that folder.

Use cases are

  • contract deploy automation
  • automate frequent operation of contracts
  • etc

shunsukew avatar Mar 28 '23 01:03 shunsukew

Yes, the PR closes this. Let's move it to "under review" until the docs are updated and it's included in a release.

Scripts are a good idea - can you create a new issue in the New/Idea section so we can discuss for next sprint?

codespool avatar Mar 28 '23 09:03 codespool