Skip to content

Commit f8ab633

Browse files
committed
Use official Pages deployment action of GitHub
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 407fd6a commit f8ab633

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

.github/workflows/deploy.yml

+30-17
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,41 @@
1-
name: Deploy site
1+
name: Deploy static content to Pages
22

33
on:
44
push:
55
branches:
6-
- master
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
717

818
jobs:
9-
build:
10-
runs-on: ubuntu-20.04
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
1124
steps:
12-
- uses: actions/checkout@v3
13-
- name: Setup NodeJS
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
- name: Install Node.js
1428
uses: actions/setup-node@v3
1529
with:
1630
node-version: 16
17-
18-
- name: Install dependencies & build
19-
run: |
20-
npm ci
21-
npm run build
22-
23-
- name: Deploy
24-
uses: peaceiris/actions-gh-pages@v3
31+
- run: npm ci
32+
- run: npm run build
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v1
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v1
2537
with:
26-
publish_dir: ./_site
27-
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
cname: tc39.es
38+
path: _site
39+
- name: Deploy to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)