-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.26 KB
/
azure-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: (Dev) Upload To Azure Blob Storage
on:
push:
branches:
- develop
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Download Spigot Jar
uses: wei/curl@v1
with:
args: https://cdn.getbukkit.org/spigot/spigot-1.8.8-R0.1-SNAPSHOT-latest.jar --create-dirs -o Impl/libs/spigot.jar
- name: Edit libraries folder permissions
run: sudo chmod -R 777 Impl/libs/
- name: Build Jar
run: gradle shadowJar
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Rename Jar
run: mv Impl/build/libs/HyriCosmetics-Impl-*.jar Impl/build/libs/HyriCosmetics.jar
- name: Upload Jar
uses: azure/CLI@v1
env:
CONNECTION_STRING: ${{ secrets.AZURE_CONNECTION_STRING }}
CONTAINER_NAME: ${{ secrets.DEV_CONTAINER }}
with:
inlineScript: az storage blob upload-batch --connection-string $CONNECTION_STRING --source Impl/build/libs --destination $CONTAINER_NAME --destination-path cosmetics --overwrite