Skip to content

Commit

Permalink
ci(build): fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Palm authored Mar 9, 2024
1 parent 19e2fe1 commit c89c521
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
path: main
path: "source"

- name: Checkout builds
uses: actions/checkout@v4
Expand All @@ -29,22 +29,24 @@ jobs:
- uses: oven-sh/setup-bun@v1

- name: Install dependencies
working-directory: main
working-directory: source
run: bun i

- name: CI
working-directory: main
working-directory: source
run: bun run format

- name: Build
working-directory: main
working-directory: source
run: bun run build-bun

- name: Push builds
run: |
rm $GITHUB_WORKSPACE/builds/* || true
cp -r dist/* $GITHUB_WORKSPACE/builds || true
rm $GITHUB_WORKSPACE/builds/*
cp -r $GITHUB_WORKSPACE/source/dist/* $GITHUB_WORKSPACE/builds
cd $GITHUB_WORKSPACE/builds
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .
git commit -m "Build $GITHUB_SHA" || exit 0
git push
Expand Down

0 comments on commit c89c521

Please sign in to comment.