Skip to content

Commit d2a14d5

Browse files
authored
Merge pull request #4 from mag1cfrog/dev/astro-migration
Refactor GitHub Actions workflow: update comments for clarity, upgrad…
2 parents c5def9f + 1f2bcca commit d2a14d5

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@ permissions:
1313
jobs:
1414
build-and-deploy:
1515
runs-on: ubuntu-latest
16-
1716
steps:
18-
# 1️⃣ Fetch your code
17+
18+
# 1️⃣ Checkout your code
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v4
2121

22-
# 2️⃣ Setup Node.js & build
22+
# 2️⃣ Setup Node and build your Astro site
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v3
2525
with:
26-
node-version: '18'
27-
- name: Install dependencies & build
26+
node-version: "18"
27+
- name: Install & build
2828
run: |
2929
npm ci
30-
npm run build
30+
npm run build
3131
3232
# 3️⃣ Configure the Pages environment
33-
- name: Configure Pages
34-
uses: actions/configure-pages@v3
33+
- name: Configure GitHub Pages
34+
uses: actions/configure-pages@v5
3535

36-
# 4️⃣ Upload the built site as an artifact
36+
# 4️⃣ Upload the built site (uses upload-artifact@v4 internally)
3737
- name: Upload Pages artifact
38-
uses: actions/upload-pages-artifact@v1
38+
uses: actions/upload-pages-artifact@v3
3939
with:
40-
path: ./dist
40+
path: ./dist
4141

4242
# 5️⃣ Deploy to GitHub Pages
4343
- name: Deploy to GitHub Pages
4444
id: deployment
45-
uses: actions/deploy-pages@v2
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)