mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-18 01:42:10 +08:00
refactor
This commit is contained in:
parent
810ac3cdfb
commit
07d62195f8
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@ -16,19 +16,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: 7.0.x
|
||||
|
||||
- name: Cache NuGet Packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ runner.os }}-dotnet-nuget
|
||||
path: ~/.nuget/packages
|
||||
|
||||
- name: Update Release Drafter
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/main' && ${{ steps.last_release.outputs.tag_name }} != null
|
||||
id: last_release
|
||||
uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
@ -44,13 +34,24 @@ jobs:
|
||||
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: |
|
||||
${{ steps.last_release.outputs.tag_name }} != null
|
||||
if: ${{ steps.last_release.outputs.tag_name }} != null
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: 7.0.x
|
||||
|
||||
- name: Cache NuGet Packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ runner.os }}-dotnet-nuget
|
||||
path: ~/.nuget/packages
|
||||
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user