From 47c4bf08dc34fc7f4fb9f0bf61835bc7ee123838 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:05:14 +0800 Subject: [PATCH] Create deta.yml --- .github/workflows/deta.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/deta.yml diff --git a/.github/workflows/deta.yml b/.github/workflows/deta.yml new file mode 100644 index 0000000..cb6ce09 --- /dev/null +++ b/.github/workflows/deta.yml @@ -0,0 +1,21 @@ +name: Deploy to Deta +on: + pull_request_target: + types: + - closed + +jobs: + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 #Be sure you check-out the repo first. Deta CLI needs access to the files + - uses: BogDAAAMN/deta-deploy-action@v1.0.1 + with: + deta-access-token: ${{ secrets.DETA_TOKEN }} #Deta access token https://docs.deta.sh/docs/cli/auth + deta-name: 'api' #Deta Micro name https://docs.deta.sh/docs/cli/commands/#deta-clone + deta-project-dir: '.' #Optional: directory to be deployed on Deta. Default is the root "." + + - uses: wei/curl@master + with: + args: https://api.is-really.cool/addnew