Implement dockerfile & docker-dompose #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish Artifacts | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
env: | |
DOTNET_VERSION: '6.0.x' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
if: matrix.os == 'ubuntu-latest' | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Setup .NET for Windows | |
if: matrix.os == 'windows-latest' | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
dotnet-install-dir: 'C:\Program Files\dotnet' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Publish Artifact | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: BattleBitApi | |
path: ./BattleBitApi/bin/Release/net6.0/ |