From dda6d043f53dde062b897641562fd2a6d2544f03 Mon Sep 17 00:00:00 2001 From: Perryvw Date: Sun, 7 Aug 2022 15:04:25 +0200 Subject: [PATCH 1/2] Try deploying using new workflow --- .github/workflows/deploy.yml | 26 ++++++++++++++++++-------- src/pages/index.tsx | 2 +- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b1b32ccb..10314990 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,14 +1,23 @@ name: Deploy -on: - push: - branches: source +# on: +# push: +# branches: source jobs: deploy: 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. ), }, From c0d6196d0e3b4e3456dda92f79b7e05760342efd Mon Sep 17 00:00:00 2001 From: Perryvw Date: Sun, 7 Aug 2022 15:07:05 +0200 Subject: [PATCH 2/2] Add back branch guard --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 10314990..df9ad8c6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,8 @@ name: Deploy -# on: -# push: -# branches: source +on: + push: + branches: source jobs: deploy: