|
41 | 41 | release-tag-var: RELEASE_TAG |
42 | 42 | package-tag-var: PACKAGE_TAG |
43 | 43 |
|
44 | | - - name: Ensure no conflicting release |
45 | | - uses: fpgawars/apio-workflows/.github/actions/ensure-no-conflicting-release@main |
46 | | - with: |
47 | | - release-tag: ${{ env.RELEASE_TAG }} |
48 | | - |
49 | 44 | - name: Get repository commit |
50 | 45 | uses: fpgawars/apio-workflows/.github/actions/get-repo-commit@main |
51 | 46 | with: |
@@ -114,37 +109,45 @@ jobs: |
114 | 109 | run: | |
115 | 110 | ls -al _packages/* |
116 | 111 |
|
| 112 | + - name: Convert json build info to text |
| 113 | + uses: fpgawars/apio-workflows/.github/actions/json-to-text@main |
| 114 | + with: |
| 115 | + input-json: build-info.json |
| 116 | + output-text: build-info.txt |
| 117 | + |
117 | 118 | - name: Prepare release text |
118 | 119 | run: | |
119 | 120 | cat > RELEASE_BODY.txt <<EOF |
120 | 121 | This is an automated build-and-release. |
121 | 122 |
|
122 | 123 | Build info: |
123 | 124 | \`\`\` |
124 | | - $(tr -d '",{}' < build-info.json) |
| 125 | + $(cat build-info.txt) |
125 | 126 | \`\`\` |
126 | 127 | EOF |
127 | 128 |
|
128 | | - cat -n $out |
129 | | -
|
130 | | - - name: Cleanup old pre-releases |
131 | | - uses: fpgawars/apio-workflows/.github/actions/cleanup-old-prereleases@main |
| 129 | + cat -n RELEASE_BODY.txt |
132 | 130 |
|
133 | 131 | - name: Scan the package for viruses |
134 | 132 | uses: fpgawars/apio-workflows/.github/actions/scan-files-for-viruses@main |
135 | 133 | with: |
136 | 134 | file-patterns: | |
137 | 135 | _packages/apio-verible-*.tgz |
138 | 136 |
|
139 | | - - name: Create the Release and upload files |
140 | | - uses: softprops/action-gh-release@v2.2.2 |
| 137 | + - name: Cleanup old pre-releases |
| 138 | + uses: fpgawars/apio-workflows/.github/actions/cleanup-old-prereleases@main |
| 139 | + |
| 140 | + - name: Ensure no conflicting release |
| 141 | + uses: fpgawars/apio-workflows/.github/actions/ensure-no-conflicting-release@main |
| 142 | + with: |
| 143 | + release-tag: ${{ env.RELEASE_TAG }} |
| 144 | + |
| 145 | + - name: Create GitHub pre-release |
| 146 | + uses: fpgawars/apio-workflows/.github/actions/create-pre-release@main |
141 | 147 | with: |
142 | | - tag_name: ${{env.RELEASE_TAG}} |
143 | | - name: ${{env.RELEASE_TAG}} |
| 148 | + release_tag: ${{ env.RELEASE_TAG }} |
144 | 149 | body_path: RELEASE_BODY.txt |
145 | | - preserve_order: true |
146 | | - prerelease: true |
147 | | - fail_on_unmatched_files: true |
| 150 | + # We intensionally list explicitly all the expected files. |
148 | 151 | files: | |
149 | 152 | _packages/apio-verible-darwin-arm64-${{env.PACKAGE_TAG}}.tgz |
150 | 153 | _packages/apio-verible-darwin-x86-64-${{env.PACKAGE_TAG}}.tgz |
|
0 commit comments