Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed May 29, 2024
1 parent 0dd164a commit 9d71c43
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 48 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,22 @@ jobs:
enable_notify_slack: true
slack_channel: helix-ui
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

publish-ipfs:
name: Publish ipfs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Publish ipfs
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
run: |
npm i -g @fleekxyz/cli
fleek projects switch --id=clwordxrq0003igm26h2r52n1
npm i
npm run build:mainnet
mv fleek.config.json dist
cd dist
fleek sites deploy
83 changes: 35 additions & 48 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,41 @@ jobs:
steps:
- uses: actions/checkout@v3

# - uses: actions/checkout@v3
# with:
# repository: darwinia-network/devops
# path: .github
#
# - uses: ./.github/actions/smart-vercel
# name: Deploy Helix (mainnet)
# with:
# node_version: 20
# vercel_token: ${{ secrets.VERCEL_TOKEN }}
# vercel_group: itering
# preview_output: true
# alias_domain: "helix-stg-mainnet"
# project_name: "helix-apps"
# script_install: npm i
# script_build: npm run build:mainnet
# dist_path: dist
# enable_notify_slack: true
# slack_channel: helix-ui
# slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
#
# - uses: ./.github/actions/smart-vercel
# name: Deploy Helix (testnet)
# with:
# node_version: 20
# vercel_token: ${{ secrets.VERCEL_TOKEN }}
# vercel_group: itering
# preview_output: true
# alias_domain: "helix-stg-testnet"
# project_name: "helix-apps-test"
# script_install: npm i
# script_build: npm run build:testnet
# dist_path: dist
# enable_notify_slack: true
# slack_channel: helix-ui
# slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
- uses: actions/checkout@v3
with:
repository: darwinia-network/devops
path: .github

- uses: ./.github/actions/smart-vercel
name: Deploy Helix (mainnet)
with:
node_version: 20
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
alias_domain: "helix-stg-mainnet"
project_name: "helix-apps"
script_install: npm i
script_build: npm run build:mainnet
dist_path: dist
enable_notify_slack: true
slack_channel: helix-ui
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

- name: Publish ipfs
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
run: |
npm i -g @fleekxyz/cli
fleek projects switch --id=clwordxrq0003igm26h2r52n1
npm i
npm run build:mainnet
mv fleek.config.json dist
cd dist
fleek sites deploy
- uses: ./.github/actions/smart-vercel
name: Deploy Helix (testnet)
with:
node_version: 20
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
alias_domain: "helix-stg-testnet"
project_name: "helix-apps-test"
script_install: npm i
script_build: npm run build:testnet
dist_path: dist
enable_notify_slack: true
slack_channel: helix-ui
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}


0 comments on commit 9d71c43

Please sign in to comment.