Skip to content

Commit

Permalink
feat(ci): allow dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed May 18, 2024
1 parent 58781a0 commit 73ebfbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build
on:
push:
branches: [main]
branches: [main, dev]
paths-ignore:
- "**/*.md"

jobs:
build:
Expand All @@ -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
Expand All @@ -28,6 +33,8 @@ jobs:
- name: Build
run: pnpm build

# TODO: Check for linting?

- name: Push builds
run: |
Expand All @@ -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 changes: 1 addition & 1 deletion .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Sync with I18n repository
on:
push:
branches:
- 'legacy'
- 'main'
paths:
- 'src/core/i18n/default.json'
workflow_dispatch:
Expand Down

0 comments on commit 73ebfbc

Please sign in to comment.