mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-02 21:20:55 +00:00
Initial pass on release workflow.
This commit is contained in:
parent
cec3b1297a
commit
59839cbbac
28
.github/workflows/release.yml
vendored
Normal file
28
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Upload to S3
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Install JDK
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- name: Build
|
||||
run: ./gradlew --no-daemon build
|
||||
- name: Organize artifacts
|
||||
run: ./tools/organize-artifacts.sh
|
||||
- uses: shallwefootball/s3-upload-action@master
|
||||
with:
|
||||
aws_key_id: ${{ secrets.ARTIFACTS_KEY_ID }}
|
||||
aws_secret_access_key: ${{ secrets.ARTIFACTS_APP_KEY }}
|
||||
aws_bucket: ${{ secrets.ARTIFACTS_BUCKET }}
|
||||
source_dir: 'artifacts/'
|
||||
destination_dir: 'foundation/'
|
15
tools/organize-artifacts.sh
Executable file
15
tools/organize-artifacts.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
rm -rf artifacts/
|
||||
|
||||
mkdir -p artifacts/
|
||||
mkdir -p artifacts/build/manifests
|
||||
cp build/manifests/update.json artifacts/build/manifests/
|
||||
|
||||
find . -name "*-plugin.jar" | while read -r jar
|
||||
do
|
||||
DN=`dirname ${jar}`
|
||||
mkdir -p "artifacts/$DN"
|
||||
cp $jar "artifacts/$jar"
|
||||
done
|
Loading…
Reference in New Issue
Block a user