mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
CI - publish builds on master only
other branches can be published manually
This commit is contained in:
parent
2f270c9c03
commit
d704d398cd
6
.github/workflows/docfx.yml
vendored
6
.github/workflows/docfx.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Master - DocFX
|
name: Master - DocFX
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: "7.0.x"
|
||||||
- name: Setup DocFX
|
- name: Setup DocFX
|
||||||
run: choco install docfx -y
|
run: choco install docfx -y
|
||||||
- name: Build Core
|
- name: Build Core
|
||||||
@ -32,4 +32,4 @@ jobs:
|
|||||||
username: ${{ secrets.FTP_USER }}
|
username: ${{ secrets.FTP_USER }}
|
||||||
password: ${{ secrets.FTP_PASSWORD }}
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
local-dir: docfx/docfx_project/_site/
|
local-dir: docfx/docfx_project/_site/
|
||||||
server-dir: /httpdocs/docs/
|
server-dir: /httpdocs/docs/
|
||||||
|
|||||||
8
.github/workflows/master.yml
vendored
8
.github/workflows/master.yml
vendored
@ -1,8 +1,10 @@
|
|||||||
name: Master - Build
|
name: Master - Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
version:
|
version:
|
||||||
@ -26,11 +28,11 @@ jobs:
|
|||||||
# If we're not in master, add the branch name to the version so it counts as prerelease
|
# If we're not in master, add the branch name to the version so it counts as prerelease
|
||||||
if ($BranchName -ne "master") { $VersionNumber += "-$BranchName" }
|
if ($BranchName -ne "master") { $VersionNumber += "-$BranchName" }
|
||||||
"version-number=$VersionNumber" >> $Env:GITHUB_OUTPUT
|
"version-number=$VersionNumber" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: version
|
needs: version
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
rid: win10-x64
|
rid: win10-x64
|
||||||
|
|||||||
6
.github/workflows/nuget.yml
vendored
6
.github/workflows/nuget.yml
vendored
@ -1,8 +1,10 @@
|
|||||||
name: Publish Nuget packages
|
name: Publish Nuget packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
version:
|
version:
|
||||||
@ -43,4 +45,4 @@ jobs:
|
|||||||
- name: Pack Artemis.UI.Shared
|
- name: Pack Artemis.UI.Shared
|
||||||
run: dotnet pack -c Release -p:Version=${{ needs.version.outputs.version-number }} src/Artemis.UI.Shared/Artemis.UI.Shared.csproj
|
run: dotnet pack -c Release -p:Version=${{ needs.version.outputs.version-number }} src/Artemis.UI.Shared/Artemis.UI.Shared.csproj
|
||||||
- name: Push Nugets
|
- name: Push Nugets
|
||||||
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user