diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml new file mode 100644 index 0000000..1d4f5aa --- /dev/null +++ b/.github/workflows/release-preview.yml @@ -0,0 +1,20 @@ +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+-preview[0-9][0-9][0-9]" +jobs: + build: + runs-on: windows-latest + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set VERSION variable from tag + run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + - name: Pack + run: echo dotnet pack --configuration Release /p:Version=${VERSION} --output . + - name: Push + run: echo dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/acraven/index.json --api-key ${GITHUB_TOKEN} + env: + #GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DUMMY_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3b98beb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" +jobs: + build: + runs-on: windows-latest + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Verify commit exists in origin/master + run: git branch --remote --contains | grep origin/master + - name: Extract release notes + run: | + git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE-NOTES + - name: Set VERSION variable from tag + run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + - name: Build + run: echo dotnet build --configuration Release /p:Version=${VERSION} + - name: Test + run: echo dotnet test --configuration Release /p:Version=${VERSION} --no-build + - name: Pack + run: echo dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output . + - name: Push + run: echo dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/acraven/index.json --api-key ${GITHUB_TOKEN} + env: + #GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DUMMY_GITHUB_TOKEN }} \ No newline at end of file diff --git a/DarkUI/DarkUI.csproj b/DarkUI/DarkUI.csproj index 5c77452..e708515 100644 --- a/DarkUI/DarkUI.csproj +++ b/DarkUI/DarkUI.csproj @@ -12,7 +12,7 @@ false DarkUI.Net5 Robin Perris, Micheal Colhoun - LICENSE + http://www.darkui.com/ icon-64.png http://www.darkui.com/images/icon-64.pn @@ -21,16 +21,13 @@ docking winforms net-winforms docking-library docking-application c-sharp dotnet dotnet-framework visual-studio visual-studio-themes windows windows-desktop windows-forms net5 Update DarkUI target frameworks to net5.0-windows;net4 false + MIT True - - True - - \ No newline at end of file diff --git a/Example/Error when Building for .net4/README.txt b/Example/Error when Building for .net4/README.txt deleted file mode 100644 index 3898d10..0000000 --- a/Example/Error when Building for .net4/README.txt +++ /dev/null @@ -1,13 +0,0 @@ -#FAQ - -Q) I got an error: - -Your project does not reference ".NETFramework,Version=v4.0,Profile=Client" framework. Add a reference to ".NETFramework,Version=v4.0,Profile=Client" in the "TargetFrameworks" property of your project file and then re-run NuGet restore. - -A) If you want to run on net4.0, you must unload the .net5 Example project first. Right click the project and hit 'unload project', then following the steps below: - - * Clean solution - * Delete folder "Example\bin" - * Delete folder "example\obj" - -For more info see: https://stackoverflow.com/questions/52833741/your-project-does-not-reference-netframework-version-v4-6-2-framework-add-a