Skip to content

Commit 9c349ab

Browse files
committed
Deploy to GitHub pages using github actions beta
1 parent bd92ff6 commit 9c349ab

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ jobs:
99
name: Deploy
1010
runs-on: ubuntu-latest
1111

12+
permissions:
13+
pages: write
14+
id-token: write
15+
16+
# Deploy to the github-pages environment
17+
environment:
18+
name: github-pages
19+
url: ${{ steps.deployment.outputs.page_url }}
20+
1221
steps:
1322
- uses: actions/checkout@v2
1423
- name: Use Node.js 12
@@ -17,8 +26,10 @@ jobs:
1726
node-version: 12
1827
- run: npm ci
1928
- run: npm run build
20-
- uses: peaceiris/actions-gh-pages@v3
29+
- name: Create gh-pages artifact
30+
uses: actions/upload-pages-artifact@v1
2131
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: build
24-
publish_branch: master
32+
path: build
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v1

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const features: Feature[] = [
2626
<>
2727
Static types can ease the mental burden of writing programs, by automatically tracking information the
2828
programmer would otherwise have to track mentally in some fashion. Types serve as documentation for
29-
yourself and other programmers and provide a ‘gradient’ that tells you what terms make sense to write.
29+
yourself and other programmers and provide a check that tells you what terms make sense to write.
3030
</>
3131
),
3232
},

0 commit comments

Comments
 (0)