Skip to content

Commit f08a8fd

Browse files
authored
ci: add deploy to github pages step (#27)
1 parent 0ba37f2 commit f08a8fd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,11 @@ jobs:
1717
- run: npm ci
1818
- run: npm run build --if-present
1919
- run: npx semantic-release
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
22+
- name: Deploy with gh-pages
23+
run: |
24+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
25+
npx gh-pages -d build -u "github-actions-bot <support+actions@github.com>"
2026
env:
2127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"bugs": {
2828
"url": "https://github.com/abolkog/js-playground/issues"
2929
},
30-
"homepage": "https://github.com/abolkog/js-playground",
30+
"homepage": "https://abolkog.github.io/js-playground",
3131
"browserslist": {
3232
"production": [
3333
">0.2%",

0 commit comments

Comments
 (0)