Skip to content

Commit

Permalink
Always run actions when modified
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Jul 19, 2023
1 parent cd2503f commit 4729368
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build Commit
on:
push:
paths:
- ".github/workflows/build-commit.yml"
- "src/**"
- "Bundles.sln"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build PR
on:
pull_request:
paths:
- ".github/workflows/build-pr.yml"
- "src/**"
- "Bundles.sln"

Expand Down
29 changes: 26 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types:
- "published"
push:
paths:
- ".github/workflows/publish.yml"

env:
DOTNET_NOLOGO: 1
Expand All @@ -15,7 +18,7 @@ jobs:
publish_release:
name: Publish Release
runs-on: "self-hosted"
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]') && contains(github.event.release.target_commitish, 'master')"
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]') && contains(github.event.release.target_commitish, 'master') && contains(github.event_name, 'release')"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -33,12 +36,32 @@ jobs:
with:
name: Bundles Release ${{ github.event.release.name }} NuGet Packages.zip
path: build/*
- name: Upload NuGet Packages To Github Release
- name: Upload NuGet Packages To GitHub Release
uses: "ncipollo/release-action@v1"
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "build/*"
token: ${{ secrets.GITHUB_TOKEN }}
omitNameDuringUpdate: true # We don't want to update the name of the release.
omitBodyDuringUpdate: true # We don't want to update the body of the release.
omitBodyDuringUpdate: true # We don't want to update the body of the release.
test_release:
name: Test Release
runs-on: "self-hosted"
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]') && contains(github.event.release.target_commitish, 'master') && contains(github.event_name, 'push')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
- name: Publish NuGet packages
run: |
mkdir build
dotnet pack -c Release -o build
- name: Upload NuGet packages to GitHub Actions
uses: actions/upload-artifact@v3
with:
name: Bundles Release ${{ github.event.release.name }} NuGet Packages.zip
path: build/*

0 comments on commit 4729368

Please sign in to comment.