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 702d85c commit d94e4b6
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 66 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/pack.yml

This file was deleted.

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

This file was deleted.

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:
- '**'

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: "<:nettify:1268904841174843593> ${{ steps.release-asset.outputs.SUBJECT }} <:nettify:1268904841174843593>\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 ..
14 changes: 14 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
We've made another small patch release that updates the ISP database and fixes two email addresses.

### Changes

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

- `[*]` Updated the ISP database
- `[*]` Fixed two mail addresses: olc.protection.outlook.com and mail.protection.outlook.com

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/Nettify/issues/new).
1 change: 1 addition & 0 deletions CHANGES.TITLE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[servicing] Nettify v1.5.0.3: ISP Fixes!
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ 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)

0 comments on commit d94e4b6

Please # to comment.