Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
74f5691e27 | |||
aa25ceb957
|
|||
cda07a61f7 | |||
8d5f168a10
|
|||
910f1d6eed | |||
de05716b07
|
|||
1986083586 | |||
e875e781a7
|
|||
c06d22e124 | |||
81b2339ea6
|
|||
9f3f60fbf2 | |||
45a61134d6
|
|||
7720343173 | |||
e4785769ea
|
|||
9494fa3619 | |||
8b3117fdca
|
@@ -2,7 +2,7 @@ name: Build and Publish nightly package
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish:
|
build-and-publish:
|
||||||
@@ -59,6 +59,18 @@ jobs:
|
|||||||
run: .gitea/scripts/get-release-id.sh "${{ github.event.release.tag_name }}"
|
run: .gitea/scripts/get-release-id.sh "${{ github.event.release.tag_name }}"
|
||||||
|
|
||||||
- name: Upload assets
|
- name: Upload assets
|
||||||
run: |
|
run: |
|
||||||
.gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.whl_file }}
|
.gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.whl_file }}
|
||||||
.gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.sdist_file }}
|
.gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.sdist_file }}
|
||||||
|
|
||||||
|
- name: Run Releases Sync Action
|
||||||
|
uses: https://git.0xmax42.io/actions/releases-sync@main
|
||||||
|
with:
|
||||||
|
gitea_token: $ACTIONS_RUNTIME_TOKEN
|
||||||
|
gitea_url: https://git.0xmax42.io
|
||||||
|
gitea_owner: maxp
|
||||||
|
gitea_repo: ait
|
||||||
|
tag_name: ${{ inputs.tag || github.event.release.tag_name }}
|
||||||
|
github_token: ${{ secrets.SYNC_GITHUB_TOKEN }}
|
||||||
|
github_owner: 0xMax42
|
||||||
|
github_repo: ait
|
||||||
|
@@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- '**'
|
- "**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
detect-version-change:
|
detect-version-change:
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
- name: Install git-cliff
|
- name: Install git-cliff
|
||||||
if: steps.restore-cliff.outputs.cache-hit != 'true'
|
if: steps.restore-cliff.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cargo install git-cliff --version "${{ steps.cliff_version.outputs.version }}" --features gitea
|
cargo install git-cliff --locked --version "${{ steps.cliff_version.outputs.version }}" --features gitea
|
||||||
|
|
||||||
- name: Generate unreleased changelog (if file exists or on main)
|
- name: Generate unreleased changelog (if file exists or on main)
|
||||||
run: |
|
run: |
|
||||||
@@ -124,8 +124,8 @@ jobs:
|
|||||||
- name: Install git-cliff
|
- name: Install git-cliff
|
||||||
if: steps.restore-cliff.outputs.cache-hit != 'true'
|
if: steps.restore-cliff.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cargo install git-cliff --version "${{ steps.cliff_version.outputs.version }}" --features gitea
|
cargo install git-cliff --locked --version "${{ steps.cliff_version.outputs.version }}" --features gitea
|
||||||
|
|
||||||
- name: Generate changelog for release and tag
|
- name: Generate changelog for release and tag
|
||||||
id: generate-changelog
|
id: generate-changelog
|
||||||
run: |
|
run: |
|
||||||
@@ -152,7 +152,6 @@ jobs:
|
|||||||
|
|
||||||
echo "changelog_body_path=$BODY" >> $GITHUB_OUTPUT
|
echo "changelog_body_path=$BODY" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
- name: Commit updated CHANGELOG
|
- name: Commit updated CHANGELOG
|
||||||
run: |
|
run: |
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
@@ -169,12 +168,14 @@ jobs:
|
|||||||
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
||||||
echo "Tag v$VERSION already exists, skipping tag creation."
|
echo "Tag v$VERSION already exists, skipping tag creation."
|
||||||
else
|
else
|
||||||
|
export GIT_AUTHOR_DATE="$(date --iso-8601=seconds)"
|
||||||
|
export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
|
||||||
git tag -a "v$VERSION" -F "${{ steps.generate-changelog.outputs.changelog_body_path }}" --cleanup=verbatim
|
git tag -a "v$VERSION" -F "${{ steps.generate-changelog.outputs.changelog_body_path }}" --cleanup=verbatim
|
||||||
git push origin "v$VERSION"
|
git push origin "v$VERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create Gitea release
|
- name: Create Gitea release
|
||||||
env:
|
env:
|
||||||
RELEASE_PUBLISH_TOKEN: ${{ secrets.RELEASE_PUBLISH_TOKEN }}
|
RELEASE_PUBLISH_TOKEN: ${{ secrets.RELEASE_PUBLISH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ steps.version.outputs.value }}
|
VERSION=${{ steps.version.outputs.value }}
|
||||||
|
19
CHANGELOG.md
19
CHANGELOG.md
@@ -2,6 +2,25 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [unreleased]
|
||||||
|
|
||||||
|
### 🚀 Features
|
||||||
|
|
||||||
|
- *(workflows)* Add release sync to GitHub and clean up - ([8d5f168](https://git.0xmax42.io/maxp/ait/commit/8d5f168a10e674effe27aab69d348c52f3f8a58f))
|
||||||
|
- *(workflows)* Add Gitea integration to sync action - ([81b2339](https://git.0xmax42.io/maxp/ait/commit/81b2339ea6d67a73dd62fb67b41db60388750610))
|
||||||
|
- *(workflows)* Add GitHub release sync workflow - ([e478576](https://git.0xmax42.io/maxp/ait/commit/e4785769eac1dae3945a388dd745fa43555ea4da))
|
||||||
|
- *(workflows)* Add GitHub release sync workflow - ([8b3117f](https://git.0xmax42.io/maxp/ait/commit/8b3117fdca5c9cd20cfb9ac3cfe0b0f1ee5f9656))
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- *(workflows)* Correct token syntax in releases sync action - ([de05716](https://git.0xmax42.io/maxp/ait/commit/de05716b072f81351c603d82dafa17ee751b3dad))
|
||||||
|
|
||||||
|
### ⚙️ Miscellaneous Tasks
|
||||||
|
|
||||||
|
- *(workflows)* Improve git-cliff installation and tagging - ([aa25ceb](https://git.0xmax42.io/maxp/ait/commit/aa25ceb957a07a5267bfd53dea8c58827c9c6840))
|
||||||
|
- *(workflows)* Enable release event handling in sync-github - ([e875e78](https://git.0xmax42.io/maxp/ait/commit/e875e781a73349e6ac7092e3c599bdfb2526e08e))
|
||||||
|
- *(workflows)* Remove unnecessary checkout step - ([45a6113](https://git.0xmax42.io/maxp/ait/commit/45a61134d6f8112c710fa1acdfb8c6205da287b4))
|
||||||
|
|
||||||
## [0.1.0] - 2025-05-24
|
## [0.1.0] - 2025-05-24
|
||||||
|
|
||||||
### 🚀 Features
|
### 🚀 Features
|
||||||
|
Reference in New Issue
Block a user