20 lines
No EOL
679 B
YAML
20 lines
No EOL
679 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
|
|
- id: build
|
|
run: |
|
|
bazel --batch build //bukkit:bukkit.publish //core:core.publish //velocity:velocity.publish \
|
|
--remote_upload_local_results \
|
|
--remote_cache='https://${{ secrets.CACHE_USERNAME }}:${{ secrets.CACHE_PASSWORD }}@cache.lab0x13.site:443' \
|
|
--define=maven_repo='https://repo.lab0x13.site/' \
|
|
--output_base=/tmp/bazel/$FORGEJO_RUN_ID \
|
|
--noremote_cache_async |