Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c47de4cd63 | |||
|
19fc8d1185
|
|||
|
5fff23f01b
|
|||
|
9b319d6adc
|
|||
|
0a8f82f0d6
|
|||
|
|
9607f99932
|
||
| f66c40ef36 | |||
| 7ce1731a6f | |||
| c72ef8350b |
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
@@ -4,12 +4,32 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
semantic-release:
|
||||
name: Sematic Release
|
||||
runs-on: self-hosted
|
||||
outputs:
|
||||
releaseContentLink: ${{ steps.release.outputs.releaseContentLink }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Release
|
||||
id: release
|
||||
run: |
|
||||
export TMP_FILE_NAME=$(openssl rand -hex 36)
|
||||
yarn install
|
||||
yarn semantic-release
|
||||
echo "releaseContentLink=$(cat /tmp/$TMP_FILE_NAME | curl -F '_=<-' https://past.ostiwe.com)" >> "$GITHUB_OUTPUT"
|
||||
goreleaser:
|
||||
needs: semantic-release
|
||||
name: Goreleaser
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -22,9 +42,15 @@ jobs:
|
||||
go-version: '^1.25'
|
||||
- name: Install go release
|
||||
run: go install github.com/goreleaser/goreleaser/v2@latest
|
||||
- name: Release
|
||||
- name: Get release notes
|
||||
id: get-notes
|
||||
run: |
|
||||
yarn install
|
||||
yarn semantic-release
|
||||
export FILE_NAME=$(openssl rand -hex 36)
|
||||
echo "name=$FILE_NAME" >> "$GITHUB_OUTPUT"
|
||||
curl -L ${{ needs.semantic-release.outputs.releaseContentLink }} >> "/tmp/$FILE_NAME"
|
||||
- name: Run Goreleaser
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
|
||||
run: |
|
||||
goreleaser release --release-notes /tmp/${{ steps.get-notes.outputs.name }} --clean
|
||||
rm /tmp/${{ steps.get-notes.outputs.name }}
|
||||
28
CHANGELOG.md
28
CHANGELOG.md
@@ -1,3 +1,31 @@
|
||||
## [1.2.0](https://git.ostiwe.com/ostiwe-com/status/compare/v1.1.1...v1.2.0) (2025-10-29)
|
||||
|
||||
### Features
|
||||
|
||||
* Added ID field to PublicService DTO, update fields in Service model, fix CalculateUptimePercent method, transform services to Public services in goroutines ([a4050c2](https://git.ostiwe.com/ostiwe-com/status/commit/a4050c28dc9cfb2edcc3716b91af4a8ba146637b))
|
||||
* **ci:** Update release config ([1367783](https://git.ostiwe.com/ostiwe-com/status/commit/1367783e8acb2e4e1503489794c52460133c815b))
|
||||
* **ci:** Update release config ([dc5c363](https://git.ostiwe.com/ostiwe-com/status/commit/dc5c3635831dffd5e0e9da25e8e69b9ebf29663c))
|
||||
* **ci:** Update release config ([64121d5](https://git.ostiwe.com/ostiwe-com/status/commit/64121d56c7def468b880a30cd0c1f86a25fd3398))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix errors ([7e96536](https://git.ostiwe.com/ostiwe-com/status/commit/7e9653606e5b0c14294481abde4be9121fc3afd2))
|
||||
* Recreate closeNotify channel on recreate rabbit connection ([f5d780f](https://git.ostiwe.com/ostiwe-com/status/commit/f5d780fb1b682aa1f6f29b9297ed1e3e22ad15e1))
|
||||
|
||||
### CI/CD Changes
|
||||
|
||||
* Added golangci linter ([e7592e8](https://git.ostiwe.com/ostiwe-com/status/commit/e7592e87378f273d33ce170484d956607a663cd5))
|
||||
* Change CI ([334c0c1](https://git.ostiwe.com/ostiwe-com/status/commit/334c0c1480afc22b1deac93b613f407ff0f3de26))
|
||||
* Install go-releaser in CI ([abc87ab](https://git.ostiwe.com/ostiwe-com/status/commit/abc87abe8859efdcbf226c8aefe3e5ef94c64b0a))
|
||||
|
||||
### Refactoring
|
||||
|
||||
* Added node_modules to ignore for git ([c7d94c6](https://git.ostiwe.com/ostiwe-com/status/commit/c7d94c6965333d638436b0dca8a2a58767f1497e))
|
||||
* Remove unused code ([1958d9b](https://git.ostiwe.com/ostiwe-com/status/commit/1958d9b3d94fe32d7c4fcefb66acb0cd475d98ec))
|
||||
* Switching to a cron system for tasks, restructuring service and status models ([b33df27](https://git.ostiwe.com/ostiwe-com/status/commit/b33df27b31587ba935c1a3d2abc04b7b98bed531))
|
||||
* Update startup server ([628abc4](https://git.ostiwe.com/ostiwe-com/status/commit/628abc4d11849d751bbf21fd79ea637f09a66521))
|
||||
|
||||
|
||||
# [1.2.0](https://git.ostiwe.com/ostiwe-com/status/compare/v1.1.1...v1.2.0) (2025-10-28)
|
||||
|
||||
|
||||
|
||||
@@ -44,20 +44,16 @@ module.exports = {
|
||||
[
|
||||
"@semantic-release/exec",
|
||||
{
|
||||
publishCmd: 'echo -e "${nextRelease.notes}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md'
|
||||
publishCmd: 'echo "${nextRelease.notes}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md; echo "${nextRelease.notes}" > "/tmp/${process.env.TMP_FILE_NAME}";',
|
||||
}
|
||||
],
|
||||
[
|
||||
'@semantic-release/git',
|
||||
{
|
||||
"assets": ["CHANGELOG.md"]
|
||||
assets: [
|
||||
'CHANGELOG.md'
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
"@semantic-release/exec",
|
||||
{
|
||||
"publishCmd": 'echo "${nextRelease.notes}" > /tmp/release-notes.md; goreleaser release --release-notes /tmp/release-notes.md --clean'
|
||||
}
|
||||
]
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user