Skip to content

feat(ui/settings/pages/General): add branch name #27

feat(ui/settings/pages/General): add branch name

feat(ui/settings/pages/General): add branch name #27

Workflow file for this run

name: Build
on:
push:
branches: [main, dev]
paths-ignore:
- "**/*.md"
- ".github/**"
workflow_dispatch:
jobs:
build:
name: Build and push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: "source"
- name: Checkout builds
uses: actions/checkout@v4
with:
repository: "revenge-mod/builds"
path: "builds"
token: ${{ secrets.BUILDS_PUSH_TOKEN }}
ref: ${{ github.ref_name }}
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
working-directory: source
run: bun i
- name: CI
working-directory: source
run: bun run format
- name: Build
working-directory: source
run: bun run build-bun
- name: Push builds
run: |
rm $GITHUB_WORKSPACE/builds/*
cp -r $GITHUB_WORKSPACE/source/dist/* $GITHUB_WORKSPACE/builds
cd $GITHUB_WORKSPACE/builds
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Build $GITHUB_SHA" || exit 0
git push
# NOTE: Temporarily disabled, enable if needed
- name: Purge CDN cache
if: ${{ false }}
run: |
curl https://purge.jsdelivr.net/gh/revenge-mod/builds