Skip to content

Commit

Permalink
fix: use github token
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Sep 18, 2024
1 parent 3c7ab6e commit b643f3a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -25,9 +19,11 @@ jobs:
run: npm install

- name: Git user config
run: git config --global user.email "[email protected]"
- name: Git user config
run: git config --global user.name "ghpages bot"
run: |
git config --global user.email "[email protected]"
git config --global user.name "ghpages bot"
- name: Publish to Github Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run deploy

0 comments on commit b643f3a

Please sign in to comment.