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 f8f5dc5 commit 4a9dffd
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 68 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/pack.yml

This file was deleted.

36 changes: 0 additions & 36 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/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: "<:chemistar:1275056185938153536> ${{ steps.release-asset.outputs.SUBJECT }} <:chemistar:1275056185938153536>\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 made this small release to fix the NuGet package repository URLs pointing to the Textify repo instead of this one.

### Changes

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

- `[*]` Fixed package repo URLs

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/ChemiStar/issues/new).
1 change: 1 addition & 0 deletions CHANGES.TITLE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[servicing] ChemiStar v1.0.0.1: [2] Helium - Wrong Mole!
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 4a9dffd

Please sign in to comment.