⬆️ Update 👷 GitHub Action actions/upload-artifact to 834a144 (#152) #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
cfg: [debug, release] | |
os: [ubuntu, macos, windows] | |
version: ['6.x'] | |
runs-on: ${{ matrix.os }}-latest | |
env: | |
DOTNET_NOLOGO: true | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4 | |
with: | |
dotnet-version: '6.x' | |
- name: Create Package | |
id: pack | |
run: >- | |
dotnet pack --nologo | |
--configuration ${{ matrix.cfg }} | |
--version-suffix ${{ github.sha }} | |
- name: Upload Package Artifact | |
if: github.ref_type == 'branch' | |
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4 | |
with: | |
name: ${{matrix.os}}-${{matrix.cfg}}-${{steps.pack.outputs.package-filename}} | |
path: ${{steps.pack.outputs.package-filepath}} |