Skip to content

Commit

Permalink
Merge pull request #95 from cesmii/feature/update-github-actions
Browse files Browse the repository at this point in the history
Updating all marketplace github actions
  • Loading branch information
scoxen1 authored Sep 3, 2024
2 parents 23c8833 + 9feb10b commit c2ea3bd
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/backend-publish-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ env:

jobs:
build:
name: Build and Deploy .NET5 Web API
name: Build and Deploy .NET6 Web API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up dotnet Core ${{ env.NETCORE_VERSION }}
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.NETCORE_VERSION }}
- name: Restore dependencies (${{env.SOLUTION_FILE}})
Expand All @@ -48,7 +48,7 @@ jobs:
run: dotnet publish --configuration Release --output ${{ env.PUBLISH_FOLDER_RELATIVE }}
working-directory: ${{env.PROJECT_DIRECTORY}}
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_MARKETPLACE_BACK_PUBLISHSETTINGS }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/backend-publish-stage-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ env:

jobs:
build:
name: Build and Deploy .NET5 Web API
name: Build and Deploy .NET6 Web API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up dotnet Core ${{ env.NETCORE_VERSION }}
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.NETCORE_VERSION }}
- name: Restore dependencies (${{env.SOLUTION_FILE}})
Expand All @@ -47,7 +47,7 @@ jobs:
run: dotnet publish --configuration Staging --output ${{ env.PUBLISH_FOLDER_RELATIVE }}
working-directory: ${{env.PROJECT_DIRECTORY}}
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.STAGE_AZURE_MARKETPLACE_BACK_PUBLISHSETTINGS }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/frontend--publish-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
name: 'Build and Deploy React front End'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: 'Build React Code - npm install, build'
Expand All @@ -55,7 +55,7 @@ jobs:
npm install
npm run build --if-present
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_MARKETPLACE_FRONT_PUBLISHSETTINGS }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/frontend--publish-stage-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
name: 'Build and Deploy React front End'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: 'Copy robots.Staging.txt into robots.txt (stage environment only)'
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
npm install
npm run build:staging --if-present
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.STAGE_AZURE_MARKETPLACE_FRONT_PUBLISHSETTINGS }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests-in-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ env:
# Project file to use
PROJECT_NAME: 'CESMII.Marketplace.Api'
# set this to the .NET core version to use
NETCORE_VERSION: "6.x"
NETCORE_VERSION: "6.0.x"

jobs:
build:
name: Tests In Browser
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up dotnet Core ${{ env.NETCORE_VERSION }}
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.NETCORE_VERSION }}
- name: Restore dependencies (${{env.SOLUTION_FILE}})
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
name: Build and Test .NET6 Web API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up dotnet Core ${{ env.NETCORE_VERSION }}
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.NETCORE_VERSION }}
- name: Restore dependencies (${{env.SOLUTION_FILE}})
Expand Down

0 comments on commit c2ea3bd

Please sign in to comment.