Skip to content

v3.0.0

v3.0.0 #22

Workflow file for this run

name: .NET 8 Build and Release
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build ./CustomCommands/CustomCommands.csproj --configuration Release --no-restore
- name: Publish
run: dotnet publish ./CustomCommands/CustomCommands.csproj --configuration Release --no-build --output ./out
- name: Zip artifacts
run: |
cd ./out
zip -r CustomCommands.zip .
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.event.pull_request.title }}
release_name: ${{ github.event.pull_request.title }}
body: ${{ github.event.pull_request.body }}
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./out/CustomCommands.zip
asset_name: CustomCommands.zip
asset_content_type: application/zip