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 }}