Skip to content

Merge pull request #2 from imxcstar/dev #6

Merge pull request #2 from imxcstar/dev

Merge pull request #2 from imxcstar/dev #6

Workflow file for this run

name: Release
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rid: [win-x64, win-arm64, linux-x64, linux-arm64, osx-x64, osx-arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
dotnet-quality: 'preview'
- name: Publish
run: dotnet publish sharpclaw -c Release -r ${{ matrix.rid }} --self-contained -p:PublishSingleFile=true -o out/${{ matrix.rid }}
- name: Package
run: |
cd out/${{ matrix.rid }}
zip -r ../../sharpclaw-${{ matrix.rid }}.zip .
- uses: actions/upload-artifact@v4
with:
name: sharpclaw-${{ matrix.rid }}
path: sharpclaw-${{ matrix.rid }}.zip
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: build-${{ github.run_number }}
name: Build ${{ github.run_number }}
files: artifacts/*.zip
generate_release_notes: true