Skip to content

Automatically deploy new tag onto github pages #28

Automatically deploy new tag onto github pages

Automatically deploy new tag onto github pages #28

Workflow file for this run

name: Create new release and deploy onto github pages
on: workflow_dispatch
jobs:
deploy:
name: Deploy new version
runs-on: ubuntu-latest
env:
CI: ''
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
- name: install dependencies
run: npm ci
- name: setup git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions-bot"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git fetch --all
git checkout --track origin/master
- name: Run release
run: npm run release --ci
- name: deploy with gh-pages
run: npm run deploy