Skip to content

fix(plugins/force-timestamp-locale): show missing locales, make it wo… #24

fix(plugins/force-timestamp-locale): show missing locales, make it wo…

fix(plugins/force-timestamp-locale): show missing locales, make it wo… #24

Workflow file for this run

name: Build
on:
push:
branches:
- "main"
- "dev"
jobs:
build:
name: Build and release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout builds
uses: actions/checkout@v4
with:
repository: "PalmDevs/revenge-plugins-builds"
path: "builds"
token: ${{ secrets.BUILDS_PUSH_TOKEN }}
ref: ${{ github.ref }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ matrix.bun }}-bun-
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Push build
run: |
rm -rf $GITHUB_WORKSPACE/builds/* || true
cp -r dist/* $GITHUB_WORKSPACE/builds || true
cd $GITHUB_WORKSPACE/builds
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .
git commit -m "Build $GITHUB_SHA" || exit 0
git push
env:
GITHUB_TOKEN: ${{ secrets.BUILDS_PUSH_TOKEN }}