From 508adaeb3f43f4415ca572cee793b3862c47b508 Mon Sep 17 00:00:00 2001 From: imannelin Date: Tue, 9 Jun 2026 00:38:53 +0330 Subject: [PATCH] Create workflow_dispatch: deploy workflow --- workflow_dispatch: | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 workflow_dispatch: diff --git a/workflow_dispatch: b/workflow_dispatch: new file mode 100644 index 0000000..b501f2d --- /dev/null +++ b/workflow_dispatch: @@ -0,0 +1,27 @@ +name: Deploy to Fastly + +on: + workflow_dispatch: + push: + branches: [ "main" ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm ci + + - name: Deploy to Fastly + uses: fastly/compute-actions@v5 + with: + create_service: true + env: + FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}