Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added release for instances #902

Merged
merged 7 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/dry-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Dry-run Devhub, Events and Infrastructure

on:
pull_request:
branches: [main]

jobs:
deploy-widgets:
name: Diff from PR
runs-on: ubuntu-latest
strategy:
matrix:
target_account:
- dry_run_command: npm run dry-run:devhub
- dry_run_command: npm run dry-run:events
- dry_run_command: npm run dry-run:infrastructure
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
npm ci
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.6/bos-cli-installer.sh | sh

- name: Dry-run widgets
run: |
${{ matrix.target_account.dry_run_command }}
30 changes: 30 additions & 0 deletions .github/workflows/release-instances.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Components to Mainnet - Events and Infrastructure

on:
push:
branches: [main]

jobs:
deploy-widgets:
name: Deploy
runs-on: ubuntu-latest
strategy:
matrix:
target_account:
- environment: events-committee.near
deploy_command: npm run deploy:events
- environment: infrastructure-committee.near
deploy_command: npm run deploy:infrastructure
environment: ${{ matrix.target_account.environment }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
npm ci
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.6/bos-cli-installer.sh | sh

- name: Deploy widgets
run: |
${{ matrix.target_account.deploy_command }} -- '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' display
Loading