Skip to content

Commit cbddae0

Browse files
authored
Try deploying using new workflow (#119)
* Try deploying using new workflow * Add back branch guard
1 parent bd92ff6 commit cbddae0

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 5 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,9 @@ jobs:
1726
node-version: 12
1827
- run: npm ci
1928
- run: npm run build
20-
- uses: peaceiris/actions-gh-pages@v3
21-
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: build
24-
publish_branch: master
29+
- name: Create gh-pages artifact
30+
uses: actions/upload-pages-artifact@v1
31+
path: build
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
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)