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