KenCommandAPI/.forgejo/workflows/publish-artifact.yml
kento2 c2d71b1d14
Some checks failed
Build and Deploy artifact / build (push) Failing after 20s
.
2026-08-06 13:33:22 +02:00

32 lines
No EOL
1 KiB
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-${{ env.FORGEJO_REPOSITORY }}
- id: deploy
env:
CACHE_USERNAME: ${{ secrets.CACHE_USERNAME }}
CACHE_PASSWORD: ${{ secrets.CACHE_PASSWORD }}
MAVEN_USER: ${{ secrets.MAVENREPO_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVENREPO_PASSWORD }}
run: |
for target in //bukkit:bukkit.publish //core:core.publish //velocity:velocity.publish
do
bazel \
--output_user_root=/var/cache/bazel \
--remote_cache="https://${CACHE_USERNAME}:${CACHE_PASSWORD}@cache.lab0x13.site:443" \
--remote_upload_local_results \
--noremote_cache_async \
"$target"
done