Skip to content

Commit

Permalink
#27: Drop the custom directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-petko committed Jun 22, 2024
1 parent 8d1db2f commit 21b887d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Move to Checkout Path
run: |
mkdir -p /_/_work/${{ github.repository }}/${{ github.sha }}
(shopt -s dotglob; mv * /_/_work/${{ github.repository }}/${{ github.sha }})
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

# Build
- name: Restore NuGet Packages
working-directory: /_/_work/${{ github.repository }}/${{ github.sha }}
run: >-
dotnet restore
${{ env.SOLUTION_FILE_NAME }}
- name: Build Solution
working-directory: /_/_work/${{ github.repository }}/${{ github.sha }}
run: >-
dotnet build
${{ env.SOLUTION_FILE_NAME }}
--no-restore
-c Release
- name: Run Tests
working-directory: /_/_work/${{ github.repository }}/${{ github.sha }}
run: >-
dotnet test
${{ env.SOLUTION_FILE_NAME }}
Expand All @@ -69,7 +61,6 @@ jobs:
-c Release
- name: Pack NuGet Packages
working-directory: /_/_work/${{ github.repository }}/${{ github.sha }}
run: >-
dotnet pack
${{ env.SOLUTION_FILE_NAME }}
Expand All @@ -87,13 +78,8 @@ jobs:
retention-days: 1
name: nuget-packages
path: |
/_/_work/${{ github.repository }}/${{ github.sha }}/dist/*.nupkg
./dist/*.nupkg
- name: Cleanup
if: always()
continue-on-error: true
run: |
rm -rf /_/_work/${{ github.repository }}/${{ github.sha }}
# Upload to NuGet
upload:
runs-on: "ubuntu-latest"
Expand Down

0 comments on commit 21b887d

Please sign in to comment.