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