Skip to content

Merge pull request #43 from cosmii02/v0.6.0 #72

Merge pull request #43 from cosmii02/v0.6.0

Merge pull request #43 from cosmii02/v0.6.0 #72

Workflow file for this run

name: Release Candidate
on:
push:
# branches: [ "main" ]
pull_request:
# branches: [ "main" ]
jobs:
package:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["7.0.x"]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Set EnableWindowsTargeting
run: dotnet new tool-manifest
- name: Restore dependencies
run: dotnet restore
- name: Package
run: dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained true -c Release --output ./forza/devrel
- name: Compress Artifact
run: zip -r ./forza/devrel/RacingDSX-RC.zip ./forza/devrel
- name: Generate Date
id: get-date
run: echo "CURRENT_DATE=$(date +'%m/%d')" >> $GITHUB_ENV
- name: Upload Release
uses: ncipollo/release-action@v1
with:
name: RacingDSX-RC-${{ env.CURRENT_DATE }}
artifacts: ./forza/devrel/RacingDSX-RC.zip
tag: latest-candidate-${{ env.CURRENT_DATE }}
prerelease: true
allowUpdates: true
description: THIS IS A PRE-RELEASE VERSION, it may contain more functionality but it's not tested yet
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true