-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update GitHub Actions #1
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
name: Regenerate Resource Files | ||
name: Regenerate Image Files | ||
|
||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/images.yml" | ||
- "img/**" | ||
- "tools/generate-assets.sh" | ||
- "tools/generate-images.sh" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
regenerate-assets: | ||
name: Regenerate Image Files | ||
permissions: write-all | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Generate Assets | ||
run: tools/generate-assets.sh | ||
run: tools/generate-images.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,6 @@ on: | |
release: | ||
types: | ||
- "published" | ||
push: | ||
paths: | ||
- ".github/workflows/publish.yml" | ||
- "src/Bundles/Bundles.csproj" | ||
- "tests/Bundles.Tests/Bundles.Tests.csproj" | ||
- "Directory.Build.props" | ||
- "Directory.Packages.props" | ||
|
||
env: | ||
DOTNET_NOLOGO: 1 | ||
|
@@ -22,7 +15,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') && github.event_name == 'release'" | ||
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -33,7 +26,7 @@ jobs: | |
- name: Publish NuGet packages | ||
run: | | ||
mkdir build | ||
dotnet pack -c Release -o build | ||
dotnet pack -c Release -o build /p:Version=${{ github.event.release.tag_name }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this doesn't work for two reasons.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
dotnet nuget push "build/*" -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
- name: Upload NuGet packages to GitHub Actions | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -48,24 +41,4 @@ jobs: | |
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. | ||
test_release: | ||
name: Test Release | ||
runs-on: "self-hosted" | ||
if: "!contains(github.event.head_commit.message, '[ci-skip]') && github.ref_name == 'master' && 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/* | ||
omitBodyDuringUpdate: true # We don't want to update the body of the release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(potentially for future reference)
ideally we want to pass the run number and hash here so that we can build assembly metadata from them if/when we add dev builds. not a priority right now though