Added workflow to perform a build on push to master (#99)

This commit is contained in:
Michael Green
2023-09-14 00:33:36 +10:00
committed by GitHub
parent d0f46a06f2
commit e8016405b6
2 changed files with 24 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ name: Build Docker Image on New Tag
on:
push:
tags:
- '*'
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
docker:
@@ -17,6 +17,8 @@ jobs:
run: dotnet tool install -g dotnetCampus.TagToVersion
- name: Set tag to version
run: dotnet TagToVersion -t ${{ github.ref }}
- name: Sign in to Nuget
run: dotnet nuget add source --username michael-j-green --password ${{ secrets.NUGETKEY }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/gaseous-project/index.json"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx

21
.github/workflows/dotnet.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: .NET
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore