-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt at github actions to push builds to azure storage
- Loading branch information
1 parent
46d48dd
commit f56a58e
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |