KenCommandAPI/.forgejo/workflows/publish-artifact.yml
kento2 b88903c1d9
All checks were successful
Build and Deploy artifact / build (push) Successful in 3m27s
.
2026-08-05 23:42:27 +02:00

27 lines
825 B
YAML

name: "Build and Deploy artifact"
on:
push:
branches: [master, main]
jobs:
build:
runs-on: docker
container:
image: "git.lab0x13.site/scrow/bazel-java:0.12"
steps:
- uses: actions/checkout@v7
- uses: actions/cache@v6
with:
path: /var/cache/bazel
key: bazel
- id: build
env:
CACHE_USERNAME: ${{ secrets.CACHE_USERNAME }}
CACHE_PASSWORD: ${{ secrets.CACHE_PASSWORD }}
run: |
bazel \
--output_user_root=/var/cache/bazel \
build //bukkit:bukkit.publish //core:core.publish //velocity:velocity.publish \
--remote_upload_local_results \
--remote_cache="https://${CACHE_USERNAME}:${CACHE_PASSWORD}@cache.lab0x13.site:443" \
--noremote_cache_async