Skip to content

Commit cff767d

Browse files
committed
fix: deploy
1 parent e279f29 commit cff767d

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

.github/workflows/jekyll.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
name: Deploy Jekyll site to Pages
22

33
on:
4-
# Runs on pushes targeting the default branch
54
push:
6-
branches: ["main", "master"]
5+
branches: [ main, master ]
76
workflow_dispatch:
87

9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
108
permissions:
119
contents: write
1210
pages: write
1311
id-token: write
1412

15-
# Allow one concurrent deployment
16-
concurrency:
17-
group: "pages"
18-
cancel-in-progress: false
19-
2013
jobs:
21-
# Build job
2214
build:
2315
runs-on: ubuntu-latest
2416
steps:
2517
- name: Checkout
26-
uses: actions/checkout@v4
18+
uses: actions/checkout@v3
2719

2820
- name: Setup Ruby
2921
uses: ruby/setup-ruby@v1
@@ -32,32 +24,26 @@ jobs:
3224
bundler-cache: true
3325

3426
- name: Setup Pages
35-
uses: actions/configure-pages@v4
27+
id: pages
28+
uses: actions/configure-pages@v3
3629

37-
- name: Build with Jekyll
30+
- name: Build Site
3831
run: bundle exec jekyll build
3932
env:
4033
JEKYLL_ENV: production
4134

42-
- name: Upload Pages artifact
43-
uses: actions/upload-pages-artifact@v3
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v2
37+
with:
38+
path: "_site"
4439

45-
# Deploy job
4640
deploy:
4741
needs: build
4842
runs-on: ubuntu-latest
49-
50-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
51-
permissions:
52-
pages: write # to deploy to Pages
53-
id-token: write # to verify the deployment originates from an appropriate source
54-
55-
# Deploy to the github-pages environment
5643
environment:
5744
name: github-pages
5845
url: ${{ steps.deployment.outputs.page_url }}
59-
6046
steps:
6147
- name: Deploy to GitHub Pages
6248
id: deployment
63-
uses: actions/deploy-pages@v3
49+
uses: actions/deploy-pages@v2

SETUP.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# GitHub Pages Setup Instructions
2+
3+
## Important: Enable GitHub Pages in Repository Settings
4+
5+
Before your site will deploy correctly, you must enable GitHub Pages in your repository settings:
6+
7+
1. Go to your repository on GitHub (https://github.com/NotAwar/NotAwar.github.io)
8+
2. Click on "Settings" in the top navigation bar
9+
3. Scroll down to the "GitHub Pages" section in the left sidebar
10+
4. Under "Source", select "GitHub Actions"
11+
5. Save the changes
12+
13+
## Common Deployment Issues
14+
15+
If you see errors like:

0 commit comments

Comments
 (0)