KenCommandAPI/.forgejo/workflows/publish-artifact.yml
kento2 be29fd2c53
Some checks failed
Build and Deploy artifact / build (push) Has been cancelled
.
2026-08-05 13:17:00 +02:00

26 lines
802 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.6"
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 }}
OUTPUT_ROOT: /var/cache/bazel
run: |
bazel --batch 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