Update workflow pt 2. (#228) #296
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Proposals | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| env: | |
| NODE_VERSION: 18 | |
| jobs: | |
| create: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| - run: yarn install | |
| shell: bash | |
| - run: echo "$DEPLOY_KEYPAIR" > ./deploy-keypair.json && chmod 600 ./deploy-keypair.json | |
| if: github.ref == 'refs/heads/main' | |
| shell: bash | |
| env: | |
| DEPLOY_KEYPAIR: ${{ secrets.DEPLOYER_KEYPAIR }} | |
| - name: Run Bulk Create Helium Proposals | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| ./node_modules/.bin/ts-node ./bin/helium-vote.ts bulk-create-proposal \ | |
| -u "https://solana-rpc.web.helium.io" \ | |
| --file ./helium-proposals.json \ | |
| --wallet ./deploy-keypair.json \ | |
| --orgName Helium \ | |
| --multisig ${{ secrets.MULTISIG }} | |
| - name: Run Bulk Create Mobile Proposals | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| ./node_modules/.bin/ts-node ./bin/helium-vote.ts bulk-create-proposal \ | |
| -u "https://solana-rpc.web.helium.io" \ | |
| --file ./mobile-proposals.json \ | |
| --wallet ./deploy-keypair.json \ | |
| --orgName "Helium MOBILE" \ | |
| --multisig ${{ secrets.MULTISIG }} | |
| - name: Run Bulk Create Iot Proposals | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| ./node_modules/.bin/ts-node ./bin/helium-vote.ts bulk-create-proposal \ | |
| -u "https://solana-rpc.web.helium.io" \ | |
| --file ./iot-proposals.json \ | |
| --wallet ./deploy-keypair.json \ | |
| --orgName "Helium IOT" \ | |
| --multisig ${{ secrets.MULTISIG }} |