Skip to content

Commit 5ad01e8

Browse files
committed
Refactor deploy.yml for improved formatting and consistency
1 parent 7f22ef3 commit 5ad01e8

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
push:
4+
push:
55
branches:
66
- main
77
- dev
88
workflow_dispatch:
99

10-
permissions:
10+
permissions:
1111
contents: read
1212
pages: write
1313
id-token: write
@@ -19,9 +19,9 @@ concurrency:
1919
jobs:
2020
build-and-deploy:
2121
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout main branch
24-
uses: actions/checkout@v4
22+
steps:
23+
- name: Checkout main branch
24+
uses: actions/checkout@v4
2525
with:
2626
ref: main
2727
path: main-content
@@ -38,26 +38,20 @@ jobs:
3838
- name: Prepare combined deployment
3939
run: |
4040
mkdir -p _site
41-
42-
# Copy main branch content to root
4341
cp -r main-content/* _site/ 2>/dev/null || true
44-
45-
# Copy dev branch content to /dev subdirectory
4642
mkdir -p _site/dev
4743
cp -r dev-content/* _site/dev/ 2>/dev/null || true
48-
49-
# Clean up git directories
50-
rm -rf _site/. git _site/. github _site/dev/.git _site/dev/.github
44+
rm -rf _site/. git _site/.github _site/dev/.git _site/dev/. github
5145
5246
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v3
47+
uses: actions/upload-pages-artifact@v3
5448

5549
- name: Deploy to GitHub Pages
5650
id: deployment
57-
uses: actions/deploy-pages@v4
51+
uses: actions/deploy-pages@v4
5852

5953
- name: Comment deployment URL
6054
run: |
6155
echo "✅ Deployed successfully!"
62-
echo "📦 Main branch: https://mralders0n.github.io/MeshCore-GOME-WarDriver/"
63-
echo "🔧 Dev branch: https://mralders0n.github.io/MeshCore-GOME-WarDriver/dev/"
56+
echo "📦 Main branch: https://mralders0n.github.io/MeshCore-GOME-WarDriver/"
57+
echo "🔧 Dev branch: https://mralders0n.github.io/MeshCore-GOME-WarDriver/dev/"

0 commit comments

Comments
 (0)