Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
First attempt at github actions to push builds to azure storage
  • Loading branch information
JonathanGiles authored Jan 22, 2024
1 parent 46d48dd commit f56a58e
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,40 @@ jobs:

steps:
- uses: actions/checkout@v2

# # Based on https://medium.com/@shilyndon/purging-azure-cdn-with-github-actions-1c18e2adaf18
# - name: Azure service principal login
# uses: azure/login@v1
# with:
# creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
run: ./gradlew jlinkZip

- name: Upload to Azure Blob Storage
uses: bacongobbler/[email protected]
with:
source_dir: 'build/dist'
container_name: 'downloads'
extra_args: '--destintion-path scenic-view'
connection_string: ${{ secrets.ConnectionString }}
overwrite: 'true'

# - name: Purge Azure CDN
# uses: svanboxel/azure-purge-cdn@main
# with:
# cdn_endpoint: Jonathangiles
# cdn_profile_name: ${{ secrets.AZURE_CDN_PROFILE_NAME }}
# resource_group: ${{ secrets.AZURE_RESOURCE_GROUP }}

# - name: Azure service principal logout
# run: |
# az logout

0 comments on commit f56a58e

Please sign in to comment.