Skip to content

Commit

Permalink
* Implement deployment pipeline
Browse files Browse the repository at this point in the history
* Implement deployment pipeline
  • Loading branch information
Hekku2 authored Jul 4, 2024
1 parent fcd5f50 commit c70d093
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:
TAG: ${{ github.event_name != 'release' && 'latest' || format('tags/{0}', github.event.release.tag_name) }}

steps:
- uses: actions/checkout@v4

- name: Fetch release asset
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: ${{ github.repository }}
version: ${{ env.TAG }}
file: 'publish.zip'

- name: Login via Az module
uses: azure/login@v2
Expand All @@ -37,17 +43,11 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true

- name: Fetch release asset
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'dsaltares/godot-wild-jam-18'
version: tags/{{ github.event.release.tag_name }}
file: 'publish.zip'
- uses: actions/checkout@v4


#- name: Create environment
# uses: azure/powershell@v2
# with:
# azPSVersion: "latest"
# inlineScript: |
# ./scripts/Deploy-FunctionApp.ps1 -ResourceGroup $env:RESOURCE_GROUP -AppName $env:APP_NAME -ZipFile publish.zip
- name: Deploy binaries
uses: azure/powershell@v2
with:
azPSVersion: "latest"
inlineScript: |
./scripts/Deploy-FunctionApp.ps1 -ResourceGroup $env:RESOURCE_GROUP -AppName $env:APP_NAME -ZipFile publish.zip

0 comments on commit c70d093

Please sign in to comment.