Skip to content

Commit

Permalink
imp - Automated the release process
Browse files Browse the repository at this point in the history
---

We've automated the release process.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Aug 31, 2024
1 parent 8c5b31b commit 2e15b92
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 126 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/pack.yml

This file was deleted.

92 changes: 0 additions & 92 deletions .github/workflows/prepdraft.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/pushppa.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Push to PPA

on:
release:
types: [published]
workflow_dispatch:
push:
tags:
- 'v0.1.*'

jobs:
build:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Prepare release

on:
push:
tags:
- 'v0.1.*'

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Setup DocFX
run: dotnet tool install --global docfx
- name: Release Asset Preparation
id: release-asset
run: |
chmod +x tools/*.sh
make
make doc
cd tools ; ./docgen-pack.sh ; cd ..
echo "SUBJECT=$(cat CHANGES.TITLE)" >> "$GITHUB_OUTPUT"
echo 'BODY<<EOF' >> "$GITHUB_OUTPUT"
cat CHANGES >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
- name: Release Making
uses: softprops/action-gh-release@v2
with:
body_path: CHANGES
name: ${{ steps.release-asset.outputs.SUBJECT }}
files: |
tools/*.zip
- name: Notify build
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: "<:nitrocidks:1268905174563557452> ${{ steps.release-asset.outputs.SUBJECT }} <:nitrocidks:1268905174563557452>\n\n${{ steps.release-asset.outputs.BODY }}"
- name: Package Publication
run: |
chmod +x tools/*.sh
cd tools ; NUGET_APIKEY=${{ secrets.NUGET_APIKEY }} ./push.sh ; cd ..
13 changes: 13 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
We've released this version to update Magico to bring with it improvements.

### Changes

This release contains a variety of changes, including, but not limited to:

- `[*]` Updated libraries

Review the commit history if you want to get a deep insight about the changes.

### Feedback?

If you have issues with this version, report to us by [making a new issue ticket](https://github.com/Aptivi/NitrocidKS/issues/new).
1 change: 1 addition & 0 deletions CHANGES.TITLE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[servicing] Nitrocid KS v0.1.1.15: More Magic!
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ invoke-build:
chmod +x ./build.sh
./build.sh $(ENVIRONMENT) || (echo Retrying with heap limit 0x$(DOTNET_HEAP_LIMIT)... && DOTNET_GCHeapHardLimit=$(DOTNET_HEAP_LIMIT) ./build.sh $(ENVIRONMENT))

invoke-doc-build: invoke-build
invoke-doc-build:
chmod +x ./docgen.sh
./docgen.sh || (echo Retrying with heap limit 0x$(DOTNET_HEAP_LIMIT)... && DOTNET_GCHeapHardLimit=$(DOTNET_HEAP_LIMIT) ./docgen.sh)

Expand Down

0 comments on commit 2e15b92

Please sign in to comment.