Skip to content

Commit

Permalink
update: action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Dec 4, 2023
1 parent 912168e commit 0092c0c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/deploy.yml
Expand Up @@ -7,7 +7,7 @@ on:
- 'pr-2316'

jobs:
deploy:
deploy-gh:
runs-on: ubuntu-22.04
permissions:
contents: write
Expand All @@ -19,17 +19,19 @@ jobs:
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
- name: install dependencies
run: npm ci --ignore-scripts
- name: Build Lib

- name: build project
run: npm run build
- name: Rewrite gitignore

- name: rewrite .gitignore to include /lib files
run: sed -i '/lib/d' .gitignore
- name: Check
run: cat .gitignore
- name: Add Changes of Lib

- name: add /lib files
run: git add ./lib
- name: Deploy

- name: Deploy to GithubPages
uses: peaceiris/actions-gh-pages@v3
#if: github.ref == 'refs/heads/main'
with:
Expand All @@ -38,3 +40,4 @@ jobs:
enable_jekyll: true
keep_files: true
force_orphan: true
commit_message: ${{ github.event.head_commit.message }}

0 comments on commit 0092c0c

Please sign in to comment.