Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/routes/(auth)/(project)/github/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ ${withBlock()}
`)

const createOnGitHubURL = $derived(gen.repository
? `https://github.com/${gen.repository}/new/main?filename=.github/workflows/deploy.yml&value=${encodeURIComponent(workflowYaml)}`
? `https://github.com/${gen.repository}/new/main?filename=.github/workflows/deploy.yaml&value=${encodeURIComponent(workflowYaml)}`
: '')

onMount(() => setupCopy('.copy-workflow'))
Expand Down Expand Up @@ -400,7 +400,7 @@ ${withBlock()}
<div>
<h6><strong>Workflow</strong></h6>
<p class="text-content/50 text-sm mt-1">
Add this file as <span class="font-mono">.github/workflows/deploy.yml</span>
Add this file as <span class="font-mono">.github/workflows/deploy.yaml</span>
to deploy on push and get pull request previews.
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tests/github.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test.describe('github', () => {

// Create-on-GitHub deep-link targets the linked repo's file editor.
const href = await main.getByRole('link', { name: 'Create on GitHub' }).getAttribute('href')
expect(href).toContain('https://github.com/acme/web/new/main?filename=.github/workflows/deploy.yml&value=')
expect(href).toContain('https://github.com/acme/web/new/main?filename=.github/workflows/deploy.yaml&value=')
expect(decodeURIComponent(href ?? '')).toContain('name: api')
})

Expand Down