Skip to content

fix: missing runtime identifiers #8

fix: missing runtime identifiers

fix: missing runtime identifiers #8

Workflow file for this run

name: Publish Release
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write
actions: read
packages: write
id-token: write
checks: write
issues: write
pull-requests: write
jobs:
build-releases:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Compute the version tag
- name: Compute Tag
id: compute_tag
uses: craig-day/compute-tag@v18
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version_type: patch
# Install the .NET SDK workload
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Install dependencies
run: dotnet restore
working-directory: src
- name: Build
run: dotnet build --configuration Release
working-directory: src
- name: Publish win-x64
run: dotnet publish TwitterSky\TwitterSky.csproj --configuration Release -r win-x64 --no-restore --output ./win-x64
working-directory: src
- name: Create Release Packages zip
run: Compress-Archive -Path src\win-x64\* -DestinationPath release/TwitterSky_win-x64_${{ steps.compute_tag.outputs.next_tag }}.zip
- name: Publish arm-x64
run: dotnet publish TwitterSky\TwitterSky.csproj --configuration Release -r win-arm64 --no-restore --output ./win-arm64
working-directory: src
- name: Create Release Packages zip
run: Compress-Archive -Path src\win-arm64\* -DestinationPath release/TwitterSky_win-arm64_${{ steps.compute_tag.outputs.next_tag }}.zip
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: release/*.zip
tag_name: ${{ steps.compute_tag.outputs.next_tag }}
prerelease: false
generate_release_notes: true
name: TwitterSky ${{ steps.compute_tag.outputs.next_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}