Skip to content

Commit

Permalink
Merge pull request #26 from bornlogic/fix/ci
Browse files Browse the repository at this point in the history
main
  • Loading branch information
VictorFZ authored Aug 23, 2023
2 parents 50914c0 + e754b3d commit c50b774
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Test and Publish

on:
push:
branches: [ master ]

pull_request_target:
types:
- closed
branches:
- 'master'
defaults:
run:
shell: bash
Expand Down Expand Up @@ -38,14 +40,14 @@ jobs:
needs: test
env:
LAST_COMMITTER_EMAIL: $(git log -1 --pretty=format:'%ae')
BOT_NAME: Actions
BOT_EMAIL: [email protected]
BOT_TOKEN: secrets.BOT_ACCESS_TOKEN

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.BOT_ACCESS_TOKEN }}

- name: Install .NET Core for Versionize
uses: actions/setup-dotnet@v1
Expand All @@ -62,14 +64,13 @@ jobs:
run: dotnet build --configuration Release

- name: Increment Version
if: ${{ success() && env.LAST_COMMITTER_EMAIL != env.BOT_EMAIL }}
if: ${{ success() }}
run: |
git config --global user.name ${{ env.BOT_NAME }}
git config --global user.email ${{ env.BOT_EMAIL }}
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git remote set-url origin https://x-access-token:${{ env.BOT_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout "${GITHUB_REF:11}"
dotnet tool install --global Versionize --version 1.8.0
versionize --skip-dirty && git push --follow-tags origin "${GITHUB_REF:11}"
- name: Pack
if: ${{ success() }}
run: dotnet pack --configuration Release -o output
Expand All @@ -81,4 +82,4 @@ jobs:
dotnet nuget push "output/*.nupkg" \
--source https://nuget.pkg.github.com/bornlogic/index.json \
--api-key ${{ secrets.GITHUB_TOKEN }} \
--skip-duplicate --no-symbols
--skip-duplicate --no-symbols
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<RepositoryUrl>https://github.com/bornlogic/bornlogic-identity-server</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<RepositoryUrl>https://github.com/bornlogic/bornlogic-identity-server</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<RepositoryUrl>https://github.com/bornlogic/bornlogic-identity-server</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Bornlogic.IdentityServer/Bornlogic.IdentityServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<RepositoryUrl>https://github.com/bornlogic/bornlogic-identity-server</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down

0 comments on commit c50b774

Please sign in to comment.