Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Fixed world getters #14

Fixed world getters

Fixed world getters #14

Workflow file for this run

name: Build
on:
push:
tags:
- "v*.*.*"
env:
SOLUTION_PATH: Silkworm.sln
PACKAGE_PATH: package
ZIP_PATH: package/Silkworm.zip
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore ${{ env.SOLUTION_PATH }}
- name: Execute unit tests
run: dotnet test ${{ env.SOLUTION_PATH }}
- name: Build
run: dotnet build -c release --no-restore ${{ env.SOLUTION_PATH }}
- name: Create Zip File
uses: papeloto/action-zip@v1
with:
files: ${{ env.PACKAGE_PATH }}
dest: ${{ env.ZIP_PATH }}
- name: Release
if: ${{ endsWith(github.ref_name, '-pre') }}
uses: softprops/action-gh-release@v0.1.15
with:
tag_name: Silkworm-${{ github.ref_name }}
prerelease: true
body: Automated release of ${{ github.ref_name }}
files: ${{ env.ZIP_PATH }}
- name: Release
if: ${{ !endsWith(github.ref_name, '-pre') }}
uses: softprops/action-gh-release@v0.1.15
with:
tag_name: Silkworm-${{ github.ref_name }}
body: Automated release of ${{ github.ref_name }}
files: ${{ env.ZIP_PATH }}