-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.07 KB
/
release.yml
File metadata and controls
33 lines (30 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
on:
release:
types: [published]
jobs:
trigger-jitpack:
name: Trigger JitPack Build
runs-on: ubuntu-latest
steps:
- name: Trigger JitPack build
run: |
echo "Triggering JitPack build for ${{ github.event.release.tag_name }}"
curl -s "https://jitpack.io/com/github/ZrdJ/${{ github.event.repository.name }}/${{ github.event.release.tag_name }}/build.log" || true
update-readme:
name: Update README Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Update version in README
run: |
sed -i 's/<version>.*<\/version>/<version>${{ github.event.release.tag_name }}<\/version>/g' README.md
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git diff --staged --quiet || git commit -m "Update README to version ${{ github.event.release.tag_name }}"
git push