From 7d3fa92951b37f31f9ebc59e5ad0935299e8a338 Mon Sep 17 00:00:00 2001 From: ciiiii Date: Tue, 22 Mar 2022 02:42:41 +0800 Subject: [PATCH] config github action --- .github/workflows/deploy.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..386475b --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,25 @@ +name: Deploy to Cloudflare Workers + +on: + push: + branches: + - master + repository_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + name: Build & Deploy + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: "12.x" + - run: npm install + - name: Publish + uses: cloudflare/wrangler-action@1.2.0 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + env: + CF_ACCOUNT_ID: ${{secrets.CF_ACCOUNT_ID}} \ No newline at end of file