Skip to content

Commit

Permalink
Attempt simplified deployment as document in azure functions action
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 23, 2023
1 parent 62c3eaa commit 050765e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,18 @@ jobs:
- name: 🀘 checkout
uses: actions/checkout@v2

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'

- name: πŸ™ build
run: |
dotnet build -m:1
dotnet build ./samples/dotnet/
dotnet build src/App --output ./output
- name: πŸ§ͺ test
run: dotnet test --filter SponsorLink=true

- name: πŸ“¦ pack
run: dotnet pack -m:1

- name: βš™ func 4.x
run: npm i -g azure-functions-core-tools@4 --unsafe-perm true

- name: πŸ”“ login
if: github.ref == 'refs/heads/main'
uses: azure/login@v1
Expand All @@ -52,8 +45,10 @@ jobs:

- name: πŸš€ deploy
if: github.ref == 'refs/heads/main'
working-directory: src\App
run: func azure functionapp publish ${{ secrets.AZURE_APPNAME }} --force --csharp
uses: Azure/functions-action@v1
with:
app-name: ${{ vars.AZURE_APPNAME }}
package: ./output

- name: πŸš€ sleet
env:
Expand Down

0 comments on commit 050765e

Please sign in to comment.