Skip to content

Commit

Permalink
action for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
onx2 committed Jan 16, 2024
1 parent f856565 commit 9e72699
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
push:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: install
run: npm ci

- name: build
run: npm run build

- name: deploy pages
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: dist
12 changes: 0 additions & 12 deletions deploy.sh

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"lint": "npx eslint src test",
"lint:fix": "npm run lint -- --fix",
"prettier": "npx prettier src test --check",
"prettier:fix": "npm run prettier -- --write",
"deploy": "npm run build && chmod +x ./deploy.sh && ./deploy.sh"
"prettier:fix": "npm run prettier -- --write"
},
"imports": {
"#*": [
Expand Down

0 comments on commit 9e72699

Please sign in to comment.