Skip to content

Commit 4d3e765

Browse files
committed
deploy on GH
1 parent fe79e37 commit 4d3e765

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
15+
716
jobs:
8-
deploy:
17+
build:
918
runs-on: ubuntu-latest
1019
steps:
1120
- uses: actions/checkout@v4
@@ -15,17 +24,16 @@ jobs:
1524
cache: npm
1625
- run: npm ci
1726
- run: npx vitepress build
18-
- name: Generate app token
19-
id: app-token
20-
uses: actions/create-github-app-token@v1
21-
with:
22-
app-id: ${{ secrets.APP_ID }}
23-
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24-
owner: BristolMyersSquibb
25-
repositories: blockr
26-
- uses: JamesIves/github-pages-deploy-action@v4
27+
- uses: actions/upload-pages-artifact@v3
2728
with:
28-
repository-name: BristolMyersSquibb/blockr
29-
branch: gh-pages
30-
folder: .vitepress/dist
31-
token: ${{ steps.app-token.outputs.token }}
29+
path: .vitepress/dist
30+
31+
deploy:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
steps:
38+
- id: deployment
39+
uses: actions/deploy-pages@v4

.vitepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const base = '/blockr/'
1+
const base = '/'
22

33
module.exports = {
44
base,

0 commit comments

Comments
 (0)