From 0c25d5fa20b04c1b8c3bd6f60b0580e7aa63c05f Mon Sep 17 00:00:00 2001 From: z0x Date: Sat, 4 Jan 2025 22:50:43 -0500 Subject: [PATCH] feat(workflow): add building of dist folder --- .gitea/workflows/build-dist.yaml | 32 +++++++++++++++++++++++ .gitea/workflows/update-dependencies.yaml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/build-dist.yaml diff --git a/.gitea/workflows/build-dist.yaml b/.gitea/workflows/build-dist.yaml new file mode 100644 index 0000000..c26f2a9 --- /dev/null +++ b/.gitea/workflows/build-dist.yaml @@ -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 diff --git a/.gitea/workflows/update-dependencies.yaml b/.gitea/workflows/update-dependencies.yaml index 519c9af..fe0b5fe 100644 --- a/.gitea/workflows/update-dependencies.yaml +++ b/.gitea/workflows/update-dependencies.yaml @@ -1,4 +1,4 @@ -name: Update Dependencies +name: update dependencies on: schedule: - cron: '@daily'