Prepare repository for open-source #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 libs/spigot.jar | |
- name: Edit libraries folder permissions | |
run: sudo chmod -R 777 libs/ | |
- name: Build Jar | |
run: gradle build | |
env: | |
GITHUB_USERNAME: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
- name: Rename Jar | |
run: mv build/libs/HyriBridger-*.jar build/libs/HyriBridger.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 build/libs --destination $CONTAINER_NAME --destination-path bridger --overwrite |