Skip to content

Commit 192203c

Browse files
committed
[autosync]
1 parent e5df567 commit 192203c

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/SemanticRelease.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,46 @@ jobs:
7878
- release
7979

8080
if: needs.release.outputs.type != 'none'
81-
runs-on: ubuntu-latest
81+
runs-on: ubuntu-24.04-arm
8282
env:
8383
# toggle to 'false' to only push the tag and skip creating the GitHub Release
8484
CREATE_RELEASE: 'true'
8585
steps:
8686
- name: ⚡ Checkout repository ⚡
8787
uses: actions/checkout@v6
8888

89-
- name: ⚡ Create tag ⚡
89+
- name: ⚡ Install rarestcheck tool ⚡
90+
uses: rarestype/r2-install-action@v1
91+
with:
92+
archive: rarestcheck.tar.gz
93+
94+
- name: ⚡ Configure git ⚡
9095
run: |
9196
git config user.name "rarest automation"
9297
git config user.email "[email protected]"
9398
99+
- name: ⚡ Run README hook ⚡
100+
run: |
101+
if [ -f README.md ]; then
102+
rarestcheck README.md \
103+
--repo ${{ github.repository }} \
104+
--version ${{ needs.release.outputs.version }}
105+
106+
git add README.md
107+
fi
108+
109+
- name: ⚡ Create tag ⚡
110+
run: |
111+
# if the pre-release script modified anything but the README, abort release
112+
git diff --exit-code
113+
114+
git commit \
115+
--allow-empty \
116+
-m "[release]: ${{ needs.release.outputs.version }}"
117+
94118
git tag "${{ needs.release.outputs.version }}"
95119
git push origin "${{ needs.release.outputs.version }}"
120+
git push
96121
97122
- name: ⚡ Create release ⚡
98123
if: env.CREATE_RELEASE == 'true'

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The package-distributions library requires Swift 6.1 or later.
1919
| Platform | Status |
2020
| -------- | ------ |
2121
| 💬 Documentation | [![Status](https://raw.githubusercontent.com/ordo-one/package-distributions/refs/badges/ci/Documentation/_all/status.svg)](https://github.com/ordo-one/package-distributions/actions/workflows/Documentation.yml) |
22+
| | [![Status](https://raw.githubusercontent.com/ordo-one/package-distributions/refs/badges/ci/Documentation/Linux/status.svg)](https://github.com/ordo-one/package-distributions/actions/workflows/Documentation.yml) |
23+
| | [![Status](https://raw.githubusercontent.com/ordo-one/package-distributions/refs/badges/ci/Documentation/macOS/status.svg)](https://github.com/ordo-one/package-distributions/actions/workflows/Documentation.yml) |
2224
| 🐧 Linux | [![Status](https://raw.githubusercontent.com/ordo-one/package-distributions/refs/badges/ci/Tests/Linux/status.svg)](https://github.com/ordo-one/package-distributions/actions/workflows/Tests.yml) |
2325
| 🍏 Darwin | [![Status](https://raw.githubusercontent.com/ordo-one/package-distributions/refs/badges/ci/Tests/macOS/status.svg)](https://github.com/ordo-one/package-distributions/actions/workflows/Tests.yml) |
2426
| 🍏 Darwin (iOS) | [![Status](https://raw.githubusercontent.com/ordo-one/package-distributions/refs/badges/ci/Tests/iOS/status.svg)](https://github.com/ordo-one/package-distributions/actions/workflows/Tests.yml) |

0 commit comments

Comments
 (0)