deploy.yml
1 # This is a basic workflow to help you get started with Actions 2 3 name: Deploy 4 5 # Controls when the action will run. 6 on: 7 # Triggers the workflow on push or pull request events but only for the main branch 8 push: 9 branches: [ main ] 10 11 # Allows you to run this workflow manually from the Actions tab 12 workflow_dispatch: 13 repository_dispatch: 14 15 # A workflow run is made up of one or more jobs that can run sequentially or in parallel 16 jobs: 17 # This workflow contains a single job called "build" 18 build: 19 # The type of runner that the job will run on 20 runs-on: ubicloud 21 22 # Steps represent a sequence of tasks that will be executed as part of the job 23 steps: 24 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 25 - uses: actions/checkout@v3 26 - name: Install Dependencies 27 run: npm install 28 - name: Deploy to Cloudflare 29 uses: cloudflare/wrangler-action@v3 30 with: 31 apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} 32 wranglerVersion: "3.28.1"