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
|
name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, dev]
|
||||||
|
paths-ignore:
|
||||||
|
- "**/*.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -11,12 +13,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Checkout builds
|
- name: Checkout builds
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: 'pyoncord/detta-builds'
|
repository: "pyoncord/bunny-builds"
|
||||||
path: "builds"
|
path: "builds"
|
||||||
token: ${{ secrets.PYLIX_TOKEN }}
|
token: ${{ secrets.BUILDS_TOKEN }}
|
||||||
|
ref: ${{ github.ref_name }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
@ -29,6 +34,8 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
|
# TODO: Check for linting?
|
||||||
|
|
||||||
- name: Push builds
|
- name: Push builds
|
||||||
run: |
|
run: |
|
||||||
rm $GITHUB_WORKSPACE/builds/* || true
|
rm $GITHUB_WORKSPACE/builds/* || true
|
||||||
|
|
@ -42,5 +49,5 @@ jobs:
|
||||||
|
|
||||||
- name: Purge CDN cache
|
- name: Purge CDN cache
|
||||||
run: |
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'legacy'
|
- 'main'
|
||||||
paths:
|
paths:
|
||||||
- 'src/core/i18n/default.json'
|
- 'src/core/i18n/default.json'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue