Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance loader #23

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
- name: Checkout respository
uses: actions/checkout@v4

- name: Install rust toolchain
run: |
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
rustup default ${{ env.RUST_CHANNEL }}
env:
RUST_CHANNEL: nightly

- name: Cache cargo binaries
uses: actions/cache@v4
id: cache
Expand Down Expand Up @@ -66,7 +73,7 @@ jobs:
run: bun install --frozen-lockfile

- name: Check build sass
run: bun run sass
run: bun run deploy:sass

- name: Check build static
run: bun run check
14 changes: 9 additions & 5 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install rust toolchain
run: |
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
rustup default ${{ env.RUST_CHANNEL }}
env:
RUST_CHANNEL: nightly

- name: Cache cargo binaries
uses: actions/cache@v4
id: cache
Expand Down Expand Up @@ -77,16 +84,13 @@ jobs:
if: steps.bun-cache.outputs.cache-hit != 'true'
run: bun install --frozen-lockfile

- name: Generate css from scss
run: bun run sass

- name: Build using Perseus
run: bun run build
run: bun run deploy

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist/exported/
path: ./pkg/

deploy:
name: Deploy Github Pages
Expand Down
Loading