feat(ci): allow dev builds

This commit is contained in:
amsyarasyiq 2024-05-18 12:22:57 +08:00
parent 58781a08ea
commit 73ebfbc42f
2 changed files with 12 additions and 5 deletions

View file

@ -1,7 +1,9 @@
name: Build
on:
push:
branches: [main]
branches: [main, dev]
paths-ignore:
- "**/*.md"
jobs:
build:
@ -11,12 +13,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout builds
uses: actions/checkout@v4
with:
repository: 'pyoncord/detta-builds'
repository: "pyoncord/bunny-builds"
path: "builds"
token: ${{ secrets.PYLIX_TOKEN }}
token: ${{ secrets.BUILDS_TOKEN }}
ref: ${{ github.ref_name }}
- uses: actions/setup-node@v4
with:
node-version: 20
@ -28,6 +33,8 @@ jobs:
- name: Build
run: pnpm build
# TODO: Check for linting?
- name: Push builds
run: |
@ -42,5 +49,5 @@ jobs:
- name: Purge CDN cache
run: |
curl https://purge.jsdelivr.net/gh/pyoncord/builds
curl https://purge.jsdelivr.net/gh/pyoncord/bunny-builds@${{ github.ref_name }}/bunny.js

View file

@ -3,7 +3,7 @@ name: Sync with I18n repository
on:
push:
branches:
- 'legacy'
- 'main'
paths:
- 'src/core/i18n/default.json'
workflow_dispatch: