Skip to content

Commit

Permalink
github action configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
elendil-software committed Aug 17, 2022
1 parent 1c98e83 commit d64504e
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 89 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
feature:
- branch: ['feature/*', 'feat/*']

fix:
- branch: ['fix/*', 'hotfix/*']

test:
- branch: ['test/*', 'tests/*']

dependencies:
- branch: ['dependencies/*', 'deps/*']
7 changes: 7 additions & 0 deletions .github/release-changelog-builder-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
{
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
},
{
"title": "## 💬 Other",
"labels": ["other"]
}
],
"ignore_labels": [
"ignore"
],
"pr_template": "- ${{TITLE}} (#${{NUMBER}})"
}
14 changes: 14 additions & 0 deletions .github/workflows/Pull-Request-Labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
19 changes: 19 additions & 0 deletions .github/workflows/Pull-Request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Pull Request"
on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
init:
uses: elendil-software/github-actions/.github/workflows/init-workflow.yml@main

gitversion:
needs: init
uses: elendil-software/github-actions/.github/workflows/gitversion.yml@main
with:
config: './.github/GitVersion-Release.yml'

build:
needs: gitversion
uses: elendil-software/github-actions/.github/workflows/dotnet-build.yml@main
21 changes: 21 additions & 0 deletions .github/workflows/Push-Dev-Nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Push Developement NuGet'
on:
workflow_dispatch:

jobs:
init:
uses: elendil-software/github-actions/.github/workflows/init-workflow.yml@main

gitversion:
needs: init
uses: elendil-software/github-actions/.github/workflows/gitversion.yml@main
with:
config: './.github/GitVersion.yml'

build:
needs: gitversion
uses: elendil-software/github-actions/.github/workflows/dotnet-build.yml@main

nuget-push:
needs: build
uses: elendil-software/github-actions/.github/workflows/nuget-push-github.yml@main
35 changes: 35 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Release'
on:
workflow_dispatch:

jobs:
init:
uses: elendil-software/github-actions/.github/workflows/init-workflow.yml@main

gitversion:
needs: init
uses: elendil-software/github-actions/.github/workflows/gitversion.yml@main
with:
config: './.github/GitVersion-Release.yml'

build:
needs: gitversion
uses: elendil-software/github-actions/.github/workflows/dotnet-build.yml@main

nuget-push:
needs: build
uses: elendil-software/github-actions/.github/workflows/nuget-push-nugetorg.yml@main
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

release:
needs: [gitversion, build]
uses: elendil-software/github-actions/.github/workflows/tag-release.yml@main
with:
git_config_user_email: 'git@elendil.software'
git_config_user_name: ${{ github.repository_owner }}
git_tag: ${{needs.gitversion.outputs.SemVer}}
changelog_builder_configuration: './.github/release-changelog-builder-configuration.json'
release_artifacts: "**/*.nupkg"
secrets:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
88 changes: 0 additions & 88 deletions .github/workflows/main.yml

This file was deleted.

6 changes: 5 additions & 1 deletion IPX800cs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{9F8B
.github\GitVersion.yml = .github\GitVersion.yml
.github\GitVersion-Release.yml = .github\GitVersion-Release.yml
.github\release-changelog-builder-configuration.json = .github\release-changelog-builder-configuration.json
.github\labeler.yml = .github\labeler.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{0D379098-AE02-4E0F-87CB-97BC89C80A28}"
ProjectSection(SolutionItems) = preProject
.github\workflows\main.yml = .github\workflows\main.yml
.github\workflows\Release.yml = .github\workflows\Release.yml
.github\workflows\Push-Dev-Nuget.yml = .github\workflows\Push-Dev-Nuget.yml
.github\workflows\Pull-Request-Labeler.yml = .github\workflows\Pull-Request-Labeler.yml
.github\workflows\Pull-Request.yml = .github\workflows\Pull-Request.yml
EndProjectSection
EndProject
Global
Expand Down

0 comments on commit d64504e

Please sign in to comment.