Skip to content

Commit 4316a59

Browse files
author
konrad
committed
Enable GitHub Pages during deployment
1 parent 18775c7 commit 4316a59

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141

4242
- name: Setup GitHub Pages
4343
uses: actions/configure-pages@v6
44+
with:
45+
enablement: true
4446

4547
- name: Upload GitHub Pages artifact
4648
uses: actions/upload-pages-artifact@v5
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import fs from 'node:fs';
2+
import path from 'node:path';
3+
4+
describe('GitHub Pages deployment workflow', () => {
5+
test('enables Pages when configuring a repository without an existing Pages site', () => {
6+
const workflowPath = path.resolve(process.cwd(), '.github/workflows/deploy.yml');
7+
const workflow = fs.readFileSync(workflowPath, 'utf8');
8+
9+
expect(workflow).toMatch(
10+
/uses: actions\/configure-pages@v6\s+with:\s+enablement: true/,
11+
);
12+
});
13+
});

0 commit comments

Comments
 (0)