Added workflow to perform a build on push to master (#99)
This commit is contained in:
4
.github/workflows/BuildDockerOnTag.yml
vendored
4
.github/workflows/BuildDockerOnTag.yml
vendored
@@ -3,7 +3,7 @@ name: Build Docker Image on New Tag
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
@@ -17,6 +17,8 @@ jobs:
|
|||||||
run: dotnet tool install -g dotnetCampus.TagToVersion
|
run: dotnet tool install -g dotnetCampus.TagToVersion
|
||||||
- name: Set tag to version
|
- name: Set tag to version
|
||||||
run: dotnet TagToVersion -t ${{ github.ref }}
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
21
.github/workflows/dotnet.yml
vendored
Normal file
21
.github/workflows/dotnet.yml
vendored
Normal 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
|
Reference in New Issue
Block a user