Skip to content

Commit

Permalink
refactor: refactor build scripts and codes
Browse files Browse the repository at this point in the history
Co-authored-by: camhex <[email protected]>
  • Loading branch information
WakelessSloth56 and camhex committed Sep 10, 2024
1 parent 4f35317 commit b68403c
Show file tree
Hide file tree
Showing 25 changed files with 1,411 additions and 4,045 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yaml]
indent_size = 2

27 changes: 17 additions & 10 deletions .github/workflows/pages.yml → .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4

- name: Setup Node
uses: actions/setup-node@v3
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
node-version: '18'
cache: 'npm'
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Build
run: |
chmod +x ./build.sh
./build.sh
mkdir public
pnpm install
pnpm run build
- name: Archive Artifact
shell: sh
Expand All @@ -45,7 +52,7 @@ jobs:
.
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
Expand All @@ -61,4 +68,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
temp

*.db*
*.py

node_modules

assets/bundle.js
dist

public
22 changes: 0 additions & 22 deletions build.sh

This file was deleted.

Loading

0 comments on commit b68403c

Please sign in to comment.