diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..e02af46 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,20 @@ +name: deploy-chabokan +on: + push: + branches: [main] +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '18' + - name: update-chabokan + env: + CHABOKAN_TOKEN: ${{ secrets.CHABOKAN_TOKEN }} + run: | + npm install -g @chabokan.net/cli + chabok login -t $CHABOKAN_TOKEN + chabok deploy -s bm-api \ No newline at end of file