yaml releases don't run. comment out for now
This commit is contained in:
parent
b1ea8f9fa7
commit
74d16d8ef9
88
.github/workflows/dotnet-build.yml
vendored
88
.github/workflows/dotnet-build.yml
vendored
@ -1,44 +1,44 @@
|
|||||||
# This workflow will build a .NET project
|
# # This workflow will build a .NET project
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
# # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||||
|
#
|
||||||
name: build
|
# name: build
|
||||||
|
#
|
||||||
on:
|
# on:
|
||||||
workflow_call:
|
# workflow_call:
|
||||||
|
#
|
||||||
env:
|
# env:
|
||||||
DOTNET_CONFIGURATION: 'Release'
|
# DOTNET_CONFIGURATION: 'Release'
|
||||||
|
#
|
||||||
jobs:
|
# jobs:
|
||||||
build:
|
# build:
|
||||||
runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
os: [Linux, MacOS, Windows]
|
# os: [Linux, MacOS, Windows]
|
||||||
ui: [Avalonia]
|
# ui: [Avalonia]
|
||||||
release_name: [chardonnay]
|
# release_name: [chardonnay]
|
||||||
include:
|
# include:
|
||||||
- os: Windows
|
# - os: Windows
|
||||||
ui: WinForms
|
# ui: WinForms
|
||||||
release_name: classic
|
# release_name: classic
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Setup .NET
|
# - name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v3
|
# uses: actions/setup-dotnet@v3
|
||||||
with:
|
# with:
|
||||||
dotnet-version: '7.x'
|
# dotnet-version: '7.x'
|
||||||
env:
|
# env:
|
||||||
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build
|
# - name: Build
|
||||||
working-directory: ./Source
|
# working-directory: ./Source
|
||||||
run: |
|
# run: |
|
||||||
dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} Libation${{ matrix.ui }}\Libation${{ matrix.ui }}.csproj -p:PublishProfile=Libation${{ matrix.ui }}\Properties\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
# dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} Libation${{ matrix.ui }}\Libation${{ matrix.ui }}.csproj -p:PublishProfile=Libation${{ matrix.ui }}\Properties\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
||||||
dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} LoadByOS\${{ matrix.os }}ConfigApp\${{ matrix.os }}ConfigApp.csproj -p:PublishProfile=LoadByOS\Properties\${{ matrix.os }}ConfigApp\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
# dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} LoadByOS\${{ matrix.os }}ConfigApp\${{ matrix.os }}ConfigApp.csproj -p:PublishProfile=LoadByOS\Properties\${{ matrix.os }}ConfigApp\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
||||||
dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} LibationCli\LibationCli.csproj -p:PublishProfile=LibationCli\Properties\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
# dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} LibationCli\LibationCli.csproj -p:PublishProfile=LibationCli\Properties\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
||||||
dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} Hangover${{ matrix.ui }}\Hangover${{ matrix.ui }}.csproj -p:PublishProfile=Hangover${{ matrix.ui }}\Properties\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
# dotnet publish -c ${{ env.DOTNET_CONFIGURATION }} -o bin\Publish\${{ matrix.os }}-${{ matrix.release_name }} Hangover${{ matrix.ui }}\Hangover${{ matrix.ui }}.csproj -p:PublishProfile=Hangover${{ matrix.ui }}\Properties\PublishProfiles\${{ matrix.os }}Profile.pubxml
|
||||||
- name: Publish artifact
|
# - name: Publish artifact
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: ${{ matrix.os }}-${{ matrix.release_name }}
|
# name: ${{ matrix.os }}-${{ matrix.release_name }}
|
||||||
path: ./Source/bin/Publish/${{ matrix.os }}-${{ matrix.release_name }}/*
|
# path: ./Source/bin/Publish/${{ matrix.os }}-${{ matrix.release_name }}/*
|
||||||
if-no-files-found: error
|
# if-no-files-found: error
|
||||||
133
.github/workflows/dotnet-release.yml
vendored
133
.github/workflows/dotnet-release.yml
vendored
@ -1,66 +1,67 @@
|
|||||||
# This workflow will build a .NET project
|
# # This workflow will build a .NET project
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
# # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||||
name: release
|
# name: release
|
||||||
|
#
|
||||||
on:
|
# on:
|
||||||
push:
|
# push:
|
||||||
tags:
|
# tags:
|
||||||
- 'v*'
|
# - 'v*'
|
||||||
|
#
|
||||||
env:
|
# env:
|
||||||
DOTNET_VERSION: '7' # The .NET SDK version to use
|
# DOTNET_VERSION: '7' # The .NET SDK version to use
|
||||||
DOTNET_SOURCE: './Source'
|
# DOTNET_SOURCE: './Source'
|
||||||
DOTNET_CONFIGURATION: 'Release'
|
# DOTNET_CONFIGURATION: 'Release'
|
||||||
|
#
|
||||||
jobs:
|
# jobs:
|
||||||
build:
|
# build:
|
||||||
uses: ./.github/workflows/dotnet-build.yml
|
# uses: ./.github/workflows/dotnet-build.yml
|
||||||
|
#
|
||||||
release:
|
# release:
|
||||||
needs: build
|
# needs: build
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Calculate version
|
# - name: Calculate version
|
||||||
id: version
|
# id: version
|
||||||
run: |
|
# run: |
|
||||||
export TAG=${{ github.ref_name }}
|
# export TAG=${{ github.ref_name }}
|
||||||
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
|
# echo "version=${TAG#v}" >> $GITHUB_OUTPUT
|
||||||
|
#
|
||||||
- name: Download artifacts
|
# - name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
path: artifacts
|
# path: artifacts
|
||||||
|
#
|
||||||
- name: Rename artifacts
|
# - name: Rename artifacts
|
||||||
id: rename
|
# id: rename
|
||||||
working-directory: ./artifacts
|
# working-directory: ./artifacts
|
||||||
run: |
|
# run: |
|
||||||
for FILENAME in *; do mv ${FILENAME} Libation.${{ steps.version.outputs.version }}-${FILENAME,,}; done
|
# for FILENAME in *; do mv ${FILENAME} Libation.${{ steps.version.outputs.version }}-${FILENAME,,}; done
|
||||||
mv Libation.${{ steps.version.outputs.version }}-windows-classic Classic-Libation.${{ steps.version.outputs.version }}-windows-classic
|
# mv Libation.${{ steps.version.outputs.version }}-windows-classic Classic-Libation.${{ steps.version.outputs.version }}-windows-classic
|
||||||
|
#
|
||||||
- name: Zip assets
|
# - name: Zip assets
|
||||||
working-directory: ./artifacts
|
# working-directory: ./artifacts
|
||||||
run: |
|
# run: |
|
||||||
for FILENAME in *; do zip -r ${FILENAME}.zip ${FILENAME}; done
|
# for FILENAME in *; do zip -r ${FILENAME}.zip ${FILENAME}; done
|
||||||
mkdir ./assets
|
# mkdir ./assets
|
||||||
mv *.zip ./assets
|
# mv *.zip ./assets
|
||||||
|
#
|
||||||
- name: Create release
|
# - name: Create release
|
||||||
id: create_release
|
# id: create_release
|
||||||
uses: actions/create-release@v1
|
# uses: actions/create-release@v1
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
with:
|
# with:
|
||||||
tag_name: ${{ github.ref }}
|
# tag_name: ${{ github.ref }}
|
||||||
release_name: Libation ${{ steps.version.outputs.version }}
|
# release_name: Libation ${{ steps.version.outputs.version }}
|
||||||
body: <Put a body here>
|
# body: <Put a body here>
|
||||||
draft: true
|
# draft: true
|
||||||
prerelease: false
|
# prerelease: false
|
||||||
|
#
|
||||||
- name: Upload release assets
|
# - name: Upload release assets
|
||||||
uses: dwenegar/upload-release-assets@v1
|
# uses: dwenegar/upload-release-assets@v1
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
# with:
|
||||||
release_id: ${{ steps.create_release.outputs.id }}
|
# release_id: ${{ steps.create_release.outputs.id }}
|
||||||
assets_path: ./artifacts/assets
|
# assets_path: ./artifacts/assets
|
||||||
|
#
|
||||||
39
.github/workflows/dotnet-validate.yml
vendored
39
.github/workflows/dotnet-validate.yml
vendored
@ -1,19 +1,20 @@
|
|||||||
# This workflow will build a .NET project
|
# # This workflow will build a .NET project
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
# # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||||
|
#
|
||||||
name: validate
|
# name: validate
|
||||||
|
#
|
||||||
on:
|
# on:
|
||||||
push:
|
# push:
|
||||||
branches: [ "master" ]
|
# branches: [ "master" ]
|
||||||
pull_request:
|
# pull_request:
|
||||||
branches: [ "master" ]
|
# branches: [ "master" ]
|
||||||
|
#
|
||||||
env:
|
# env:
|
||||||
DOTNET_VERSION: '7' # The .NET SDK version to use
|
# DOTNET_VERSION: '7' # The .NET SDK version to use
|
||||||
DOTNET_SLN: './Source/Libation.sln'
|
# DOTNET_SLN: './Source/Libation.sln'
|
||||||
DOTNET_CONFIGURATION: 'Release'
|
# DOTNET_CONFIGURATION: 'Release'
|
||||||
|
#
|
||||||
jobs:
|
# jobs:
|
||||||
build:
|
# build:
|
||||||
uses: ./.github/workflows/dotnet-build.yml
|
# uses: ./.github/workflows/dotnet-build.yml
|
||||||
|
#
|
||||||
@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<Version>8.6.0.1</Version>
|
<Version>8.6.1.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Octokit" Version="4.0.1" />
|
<PackageReference Include="Octokit" Version="4.0.1" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user