From 2677911a3cd6a326b97faab16b34bd4839d0d4c4 Mon Sep 17 00:00:00 2001 From: Matthew Gall Date: Sun, 7 Apr 2024 04:20:29 +0000 Subject: [PATCH] Added GitHub Actions deployment in .github --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..4819228 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +# This is a basic workflow to help you get started with Actions + +name: Deploy + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + repository_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubicloud + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + - name: Install Dependencies + run: npm install + - name: Deploy to Cloudflare + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + wranglerVersion: "3.48.0" \ No newline at end of file