Skip to content

v1.0.7

v1.0.7 #9

Workflow file for this run

name: Deploy Hesab System
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Set up Git identity
run: |
git config --global user.name "Amir Astaneh"
git config --global user.email "[email protected]"
- name: Build the project
run: npm run build
- name: Deploy to GitHub Pages
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}