Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions workflow_dispatch:
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to Fastly

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Workflow file is misnamed and misplaced, making it invisible to GitHub Actions

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At workflow_dispatch:, line 1:

<comment>Workflow file is misnamed and misplaced, making it invisible to GitHub Actions</comment>

<file context>
@@ -0,0 +1,27 @@
+name: Deploy to Fastly
+
+on:
</file context>


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