feat(workflow): add building of dist folder
This commit is contained in:
parent
e8efcf7858
commit
0c25d5fa20
2 changed files with 33 additions and 1 deletions
32
.gitea/workflows/build-dist.yaml
Normal file
32
.gitea/workflows/build-dist.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: build dist
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-deps:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup bun.sh
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
|
- name: Update dependencies
|
||||||
|
run: |
|
||||||
|
bun install
|
||||||
|
bun run build
|
||||||
|
|
||||||
|
- name: Commit updates
|
||||||
|
run: |
|
||||||
|
git config user.name "gitea-actions[bot]"
|
||||||
|
git config user.email "gitea-actions[bot]@git.z0x.ca"
|
||||||
|
git add .
|
||||||
|
git commit -m "ci(dist): build dist"
|
||||||
|
git push
|
|
@ -1,4 +1,4 @@
|
||||||
name: Update Dependencies
|
name: update dependencies
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '@daily'
|
- cron: '@daily'
|
||||||
|
|
Loading…
Add table
Reference in a new issue