diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b1b32ccb..df9ad8c6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,15 @@ jobs: name: Deploy runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: - uses: actions/checkout@v2 - name: Use Node.js 12 @@ -17,8 +26,9 @@ jobs: node-version: 12 - run: npm ci - run: npm run build - - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: build - publish_branch: master + - name: Create gh-pages artifact + uses: actions/upload-pages-artifact@v1 + path: build + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/src/pages/index.tsx b/src/pages/index.tsx index e4738e9d..0b5951be 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -26,7 +26,7 @@ const features: Feature[] = [ <> Static types can ease the mental burden of writing programs, by automatically tracking information the programmer would otherwise have to track mentally in some fashion. Types serve as documentation for - yourself and other programmers and provide a ‘gradient’ that tells you what terms make sense to write. + yourself and other programmers and provide a check that tells you what terms make sense to write. ), },