From b643f3a2068b00bc4e510b7aa8ff5e21506d3a17 Mon Sep 17 00:00:00 2001 From: Christian Landgren Date: Wed, 18 Sep 2024 12:08:26 +0200 Subject: [PATCH] fix: use github token --- .github/workflows/gh-pages.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4d793fe..bf63fb8 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,14 +1,8 @@ name: Publish to Github Pages -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - on: push: branches: ['main'] - # Publish semver tags as releases. tags: ['v*.*.*'] jobs: @@ -25,9 +19,11 @@ jobs: run: npm install - name: Git user config - run: git config --global user.email "registry@iteam.se" - - name: Git user config - run: git config --global user.name "ghpages bot" + run: | + git config --global user.email "registry@iteam.se" + git config --global user.name "ghpages bot" - name: Publish to Github Pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run deploy