Skip to content

Commit

Permalink
build: add cicd (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanpt239 authored Jan 10, 2025
1 parent d89c2a7 commit 6143efe
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Prod

on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
ref:
default: ''
description: 'ref name'
type: string
required: true

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref_name }}
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
repository: oraichain/infra
event-type: firebase
client-payload: '{"ref": "${{ github.ref }}", "ref_name": "${{ github.ref_name }}", "repo": "${{ github.repository }}", "node_version": "18", "project": "oraichain-dapp", "target": "cw-multisig"}'

0 comments on commit 6143efe

Please sign in to comment.