Skip to content

Commit

Permalink
ci: add deploy to github pages step (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
abolkog committed Jul 26, 2024
1 parent 0ba37f2 commit d770617
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build --if-present
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"bugs": {
"url": "https://github.com/abolkog/js-playground/issues"
},
"homepage": "https://github.com/abolkog/js-playground",
"homepage": "https://abolkog.github.io/js-playground",
"browserslist": {
"production": [
">0.2%",
Expand Down

0 comments on commit d770617

Please sign in to comment.