|
11 | 11 |
|
12 | 12 | env: |
13 | 13 | CARGO_TERM_COLOR: always |
14 | | - tip_release_path: RELEASE.md |
15 | 14 |
|
16 | 15 | jobs: |
17 | 16 | test-build: |
@@ -107,39 +106,3 @@ jobs: |
107 | 106 | generate_release_notes: true |
108 | 107 | files: release-artifacts/* |
109 | 108 | prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }} |
110 | | - |
111 | | - tip-release: |
112 | | - name: Release tip on push to main |
113 | | - runs-on: ubuntu-slim |
114 | | - if: github.event_name == 'push' && github.ref_name == 'main' |
115 | | - needs: test-build |
116 | | - |
117 | | - steps: |
118 | | - - uses: actions/checkout@v6 |
119 | | - - name: Download prebuilt artifacts |
120 | | - uses: actions/download-artifact@v7 |
121 | | - with: |
122 | | - path: release-artifacts |
123 | | - merge-multiple: true |
124 | | - |
125 | | - - name: Generate release notes |
126 | | - run: | |
127 | | - tree release-artifacts/ |
128 | | - echo "From commit: $(git rev-parse --short HEAD)" > ${{ env.tip_release_path }} |
129 | | - echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> ${{ env.tip_release_path }} |
130 | | - cat ${{ env.tip_release_path }} |
131 | | -
|
132 | | - - name: Update the tip tag |
133 | | - run: | |
134 | | - git config user.name "github-actions[bot]" |
135 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
136 | | - git tag --force tip && git push --force origin tag tip |
137 | | -
|
138 | | - - name: Update the draft tip release |
139 | | - uses: softprops/action-gh-release@v2 |
140 | | - with: |
141 | | - prerelease: true |
142 | | - files: release-artifacts/* |
143 | | - tag_name: tip |
144 | | - name: Tip Build |
145 | | - body_path: ${{ env.tip_release_path }} |
0 commit comments