Skip to content

Commit

Permalink
Update github-artifact-attestations.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto authored Jul 30, 2024
1 parent c096728 commit 1e9a37b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/github-artifact-attestations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ name: GitHub Artifact Attestations
on:
workflow_dispatch:

env:
SOURCE_CODE_PATH: 'razorpageapp/razorpageapp.csproj'
BUILD_CONFIGURATION: Release

jobs:
github-artifact-attestations:
runs-on: ubuntu-latest
Expand All @@ -30,20 +26,8 @@ jobs:
with:
global-json-file: dotnet/global.json

- name: Restore dependencies
run: dotnet restore ${{ env.SOURCE_CODE_PATH }}

- name: Build
run: dotnet build --no-restore --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOURCE_CODE_PATH }}

- name: Publish
run: dotnet publish --no-build --configuration ${{ env.BUILD_CONFIGURATION }} --output ${{env.DOTNET_ROOT}}/myapp ${{ env.SOURCE_CODE_PATH }}

# - name: Upload artifact for deployment job
# uses: actions/upload-artifact@v4
# with:
# name: .net-app
# path: ${{env.DOTNET_ROOT}}/myapp
run: dotnet publish --configuration Release --output ${{env.DOTNET_ROOT}}/myapp razorpageapp/razorpageapp.csproj

- name: Artifact Attestation
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 1e9a37b

Please sign in to comment.