Skip to content

Release: v0.02.00

Release: v0.02.00 #18

Workflow file for this run

name: CD
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup dotnet (v3.1)
uses: actions/[email protected]
with:
dotnet-version: 3.1.x
- name: Build & publish (v3.1) (framework dependant)
run: dotnet publish ExportViewer.GUI/ -o ExportViewer.GUI/bin/Publish/netcoreapp3.1/framework-dependent --configuration Release -f netcoreapp3.1
- name: Build & publish (v3.1) (self contained - dependencies included)
run: dotnet publish ExportViewer.GUI/ -o ExportViewer.GUI/bin/Publish/netcoreapp3.1/self-contained-dependencies-included --configuration Release -f netcoreapp3.1 -r win-x64 --self-contained
- name: Build & publish (v3.1) (self contained - single file)
run: dotnet publish ExportViewer.GUI/ -o ExportViewer.GUI/bin/Publish/netcoreapp3.1/self-contained-single-file -r win-x64 --self-contained --configuration Release -f netcoreapp3.1 /p:PublishSingleFile=True /p:IncludeNativeLibrariesForSelfExtract=true
- name: Build & publish (v3.1) (self contained - ReadyToRun)
run: dotnet publish ExportViewer.GUI/ -o ExportViewer.GUI/bin/Publish/netcoreapp3.1/self-contained-single-file-RTR -r win-x64 --self-contained --configuration Release -f netcoreapp3.1 /p:PublishSingleFile=True /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishReadyToRun=true
- name: Upload release asset (v3.1) (framework dependant)
uses: actions/upload-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ExportViewer.GUI-netcoreapp3.1-framework-dependent
path: ExportViewer.GUI/bin/Publish/netcoreapp3.1/framework-dependent/
- name: Upload release asset (v3.1) (self contained - dependencies included)
uses: actions/upload-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ExportViewer.GUI-netcoreapp3.1-self-contained-dependencies-included
path: ExportViewer.GUI/bin/Publish/netcoreapp3.1/self-contained-dependencies-included/
- name: Upload release asset (v3.1) (self contained - single file)
uses: actions/upload-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ExportViewer.GUI-netcoreapp3.1-self-contained-single-file
path: ExportViewer.GUI/bin/Publish/netcoreapp3.1/self-contained-single-file/
- name: Upload release asset (v3.1) (self contained - ReadyToRun)
uses: actions/upload-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ExportViewer.GUI-netcoreapp3.1-self-contained-single-file-RTR
path: ExportViewer.GUI/bin/Publish/netcoreapp3.1/self-contained-single-file-RTR/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- name: Download artifacts (v3.1) (framework dependant)
uses: actions/download-artifact@v3
with:
name: ExportViewer.GUI-netcoreapp3.1-framework-dependent
path: ExportViewer.GUI-netcoreapp3.1-framework-dependent
- name: Download artifacts (v3.1) (self contained - dependencies included)
uses: actions/download-artifact@v3
with:
name: ExportViewer.GUI-netcoreapp3.1-self-contained-dependencies-included
path: ExportViewer.GUI-netcoreapp3.1-self-contained-dependencies-included
- name: Download artifacts (v3.1) (self contained - single file)
uses: actions/download-artifact@v3
with:
name: ExportViewer.GUI-netcoreapp3.1-self-contained-single-file
path: ExportViewer.GUI-netcoreapp3.1-self-contained-single-file
- name: Download artifacts (v3.1) (self contained - ReadyToRun)
uses: actions/download-artifact@v3
with:
name: ExportViewer.GUI-netcoreapp3.1-self-contained-single-file-RTR
path: ExportViewer.GUI-netcoreapp3.1-self-contained-single-file-RTR
- name: Create package (v3.1) (framework dependant)
run: Compress-Archive -Path ExportViewer.GUI-netcoreapp3.1-framework-dependent/* -DestinationPath ExportViewer.GUI-netcoreapp3.1-framework-dependent.zip -Force
shell: pwsh
- name: Create package (v3.1) (self contained - dependencies included)
run: Compress-Archive -Path ExportViewer.GUI-netcoreapp3.1-self-contained-dependencies-included/* -DestinationPath ExportViewer.GUI-netcoreapp3.1-self-contained-dependencies-included.zip -Force
shell: pwsh
- name: Create package (v3.1) (self contained - single file)
run: Compress-Archive -Path ExportViewer.GUI-netcoreapp3.1-self-contained-single-file/* -DestinationPath ExportViewer.GUI-netcoreapp3.1-self-contained-single-file.zip -Force
shell: pwsh
- name: Create package (v3.1) (self contained - ReadyToRun)
run: Compress-Archive -Path ExportViewer.GUI-netcoreapp3.1-self-contained-single-file-RTR/* -DestinationPath ExportViewer.GUI-netcoreapp3.1-self-contained-single-file-RTR.zip -Force
shell: pwsh
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh release create "${{ github.ref_name }}"
"ExportViewer.GUI-netcoreapp3.1-framework-dependent.zip"
"ExportViewer.GUI-netcoreapp3.1-self-contained-dependencies-included.zip"
"ExportViewer.GUI-netcoreapp3.1-self-contained-single-file.zip"
"ExportViewer.GUI-netcoreapp3.1-self-contained-single-file-RTR.zip"
--repo "${{ github.event.repository.full_name }}"
--title "${{ github.ref_name }}"
--verify-tag