mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 05:30:55 +00:00
Repair GitHub Release Workflow
This commit is contained in:
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
@ -1,30 +1,28 @@
|
|||||||
name: Upload to S3
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload:
|
upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout Repository
|
||||||
- name: Install JDK
|
uses: actions/checkout@v3
|
||||||
uses: actions/setup-java@v2
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Build
|
- name: Build with Gradle
|
||||||
run: ./gradlew --no-daemon build
|
uses: gradle/gradle-build-action@v2
|
||||||
- name: Organize artifacts
|
|
||||||
run: ./tools/organize-artifacts.sh
|
|
||||||
- uses: GayPizzaSpecifications/upload-s3-action@b2_support
|
|
||||||
with:
|
with:
|
||||||
aws_key_id: ${{ secrets.ARTIFACTS_KEY_ID }}
|
arguments: build
|
||||||
aws_secret_access_key: ${{ secrets.ARTIFACTS_APP_KEY }}
|
- name: Organize Artifacts
|
||||||
aws_bucket: ${{ secrets.ARTIFACTS_BUCKET }}
|
run: ./tools/organize-artifacts.sh
|
||||||
aws_endpoint: ${{ secrets.ARTIFACTS_ENDPOINT }}
|
- name: Upload to Backblaze
|
||||||
aws_region: ${{ secrets.ARTIFACTS_REGION }}
|
run: ./tools/gh-upload-backblaze.sh
|
||||||
source_dir: 'artifacts/'
|
env:
|
||||||
destination_dir: 'foundation/'
|
ARTIFACTS_KEY_ID: "${{ secrets.ARTIFACTS_KEY_ID }}"
|
||||||
|
ARTIFACTS_APP_KEY: "${{ secrets.ARTIFACTS_APP_KEY }}"
|
||||||
|
ARTIFACTS_BUCKET: "${{ secrets.ARTIFACTS_BUCKET }}"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("gay.pizza.foundation.concrete-plugin") version "0.7.0"
|
id("gay.pizza.foundation.concrete-plugin")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.dv8tion:JDA:5.0.0-alpha.2") {
|
implementation("net.dv8tion:JDA:5.0.0-beta.3") {
|
||||||
exclude(module = "opus-java")
|
exclude(module = "opus-java")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("gay.pizza.foundation.concrete-plugin") version "0.7.0"
|
id("gay.pizza.foundation.concrete-plugin")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
9
tools/gh-upload-backblaze.sh
Executable file
9
tools/gh-upload-backblaze.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BACKBLAZE_B2_VERSION="3.6.0"
|
||||||
|
|
||||||
|
curl -sL -o b2 "https://github.com/Backblaze/B2_Command_Line_Tool/releases/download/v${BACKBLAZE_B2_VERSION}/b2-linux"
|
||||||
|
chmod +x b2
|
||||||
|
./b2 authorize-account "${ARTIFACTS_KEY_ID}" "${ARTIFACTS_APP_KEY}"
|
||||||
|
./b2 sync --delete --replaceNewer artifacts/ "b2:///${ARTIFACTS_BUCKET}/foundation/"
|
Reference in New Issue
Block a user