mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-06 05:20:54 +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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- 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
|
id: last_release
|
||||||
uses: release-drafter/release-drafter@v5
|
uses: release-drafter/release-drafter@v5
|
||||||
env:
|
env:
|
||||||
@ -44,13 +34,24 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
if: |
|
if: ${{ steps.last_release.outputs.tag_name }} != null
|
||||||
${{ steps.last_release.outputs.tag_name }} != null
|
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
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
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user