Merge pull request #6 from p0nch0d3v/development #5
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: Github Pages Deploy | |
on: | |
push: | |
branches: | |
- master | |
env: | |
REPOSITORY: ${{ secrets.REPOSITORY }} | |
USER_NAME: ${{ secrets.USER_NAME }} | |
USER_EMAIL: ${{ secrets.USER_EMAIL }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: NPM Instal and Build | |
run: | | |
npm install | |
npm run build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: master | |
folder: dist | |
repository-name: ${{ env.REPOSITORY }} | |
git-config-name: ${{ env.USER_NAME }} | |
git-config-email: ${{ env.USER_EMAIL }} | |
ssh-key: ${{ secrets.GP_KEY }} |