Merge pull request #29 from Iteam1337/feat/build #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Github Pages | |
on: | |
push: | |
branches: ['main'] | |
tags: ['v*.*.*'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: npm install | |
- name: Git user config | |
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 |