feat(ci): allow dev builds
This commit is contained in:
parent
58781a08ea
commit
73ebfbc42f
2 changed files with 12 additions and 5 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
.github/workflows/crowdin.yml
vendored
2
.github/workflows/crowdin.yml
vendored
|
|
@ -3,7 +3,7 @@ name: Sync with I18n repository
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'legacy'
|
||||
- 'main'
|
||||
paths:
|
||||
- 'src/core/i18n/default.json'
|
||||
workflow_dispatch:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue