Skip to content

Commit 8b63acb

Browse files
committed
fixing deployment problem
1 parent 6d42561 commit 8b63acb

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/pipeline.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
name: Balanced ternary to decimal pipeline
2+
3+
permissions:
4+
contents: write
5+
pages: write
6+
17
on:
28
push:
39
branches: [ main, master ]
@@ -8,33 +14,35 @@ jobs:
814
build:
915
name: Build and Test
1016
runs-on: ubuntu-latest
11-
17+
1218
steps:
1319
- name: Checkout repository
1420
uses: actions/checkout@v3
15-
21+
1622
- name: Setup Node.js
1723
uses: actions/setup-node@v3
1824
with:
1925
node-version: '18'
2026
cache: 'npm'
21-
27+
2228
- name: Install dependencies
2329
run: npm ci
24-
30+
2531
- name: Build Astro project
2632
run: npm run build
27-
33+
2834
- name: Cache build output
2935
uses: actions/cache@v3
3036
with:
3137
path: dist
3238
key: ${{ runner.os }}-astro-build-${{ github.sha }}
33-
39+
3440
deploy:
35-
name: Deploy
41+
name: Deploy to GitHub Pages
3642
needs: build
37-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
43+
if: |
44+
github.event_name == 'push' &&
45+
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
3846
runs-on: ubuntu-latest
3947

4048
steps:
@@ -60,3 +68,4 @@ jobs:
6068
folder: dist
6169
clean: true
6270
token: ${{ secrets.GITHUB_TOKEN }}
71+

0 commit comments

Comments
 (0)