This commit is contained in:
parent
0755af9366
commit
6edc955aa0
1 changed files with 12 additions and 12 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
name: Build
|
||||
on:
|
||||
push:
|
||||
branches: [rewrite]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -12,20 +12,19 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: "vendetta-mod/builds"
|
||||
repository: "revenge-mod/builds"
|
||||
path: "builds"
|
||||
token: ${{ secrets.BEEF_TOKEN }}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
# TODO: replace with gh equivelants before opening a PR
|
||||
ssh-key: ${{ secrets.BUILDS_SSH_PRIVKEY }}
|
||||
ssh-known-hosts: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILzaDn52MW7i6krceJeGIv20XkzVz+VRYS8FWyh+pXhf'
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm i -g pnpm
|
||||
pnpm i
|
||||
bun i
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
- name: Push builds
|
||||
run: |
|
||||
|
@ -38,7 +37,8 @@ jobs:
|
|||
git commit -m "Build $GITHUB_SHA" || exit 0
|
||||
git push
|
||||
|
||||
- name: Purge CDN cache
|
||||
run: |
|
||||
curl https://purge.jsdelivr.net/gh/vendetta-mod/builds
|
||||
### NOTE: temporarily commented out since we're not on github
|
||||
# - name: Purge CDN cache
|
||||
# run: |
|
||||
# curl https://purge.jsdelivr.net/gh/vendetta-mod/builds
|
||||
|
||||
|
|
Loading…
Reference in a new issue