Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Spigot Build

Spigot Build #59

Workflow file for this run

name: Spigot Build
on:
workflow_dispatch:
schedule:
- cron: "0 0 */2 * 0"
push:
branches:
- main
paths:
- ".github/workflows/spigotBuild.yaml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install 19 java
uses: actions/setup-java@v3
continue-on-error: true
with:
distribution: liberica
java-version: "19"
- name: Build
continue-on-error: true
run: |
wget -qO /tmp/build.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
java -jar /tmp/build.jar --rev "latest"
- name: Upload to actifial
uses: actions/upload-artifact@v3
with:
name: latest
path: "*.jar"
# Upload
upload:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
name: Code checkout
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install node depencies
run: npm install --no-save
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Upload to actifial
run: node .github/uploadToBucket.mjs artifacts:SpigotBuild
env:
ociauth: "${{ secrets.OCI_AUTHKEY }}"
OCI_AUTHKEY: "${{ secrets.OCI_AUTHKEY }}"