|
5 | 5 | branches:
|
6 | 6 | - main
|
7 | 7 | - 'testing/**'
|
| 8 | + # Run pipeline for release tags |
| 9 | + tags: |
| 10 | + - 'v*.*.*' |
8 | 11 |
|
9 | 12 | jobs:
|
10 | 13 | # Build Eclipse eMoflon Linux user
|
@@ -114,3 +117,31 @@ jobs:
|
114 | 117 | with:
|
115 | 118 | name: eclipse-emoflon-windows-dev
|
116 | 119 | path: eclipse-emoflon-windows-dev.zip
|
| 120 | + |
| 121 | + # Create a release if running on tag |
| 122 | + create-release: |
| 123 | + needs: [build-linux-user, build-linux-dev, build-linux-user-ci, build-linux-dev-ci, build-windows-user, build-windows-dev] |
| 124 | + runs-on: [self-hosted, linux, x64] |
| 125 | + # Only run on tags |
| 126 | + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') |
| 127 | + steps: |
| 128 | + - name: Collect artifacts |
| 129 | + uses: actions/download-artifact@master |
| 130 | + - name: Release eclipse-emoflon-linux |
| 131 | + uses: softprops/action-gh-release@v1 |
| 132 | + with: |
| 133 | + files: | |
| 134 | + eclipse-emoflon-linux-user/eclipse-emoflon-linux-user.zip |
| 135 | + eclipse-emoflon-linux-dev/eclipse-emoflon-linux-dev.zip |
| 136 | + - name: Release eclipse-emoflon-linux-ci |
| 137 | + uses: softprops/action-gh-release@v1 |
| 138 | + with: |
| 139 | + files: | |
| 140 | + eclipse-emoflon-linux-user-ci/eclipse-emoflon-linux-user-ci.zip |
| 141 | + eclipse-emoflon-linux-dev-ci/eclipse-emoflon-linux-dev-ci.zip |
| 142 | + - name: Release eclipse-emoflon-windows |
| 143 | + uses: softprops/action-gh-release@v1 |
| 144 | + with: |
| 145 | + files: | |
| 146 | + eclipse-emoflon-windows-user/eclipse-emoflon-windows-user.zip |
| 147 | + eclipse-emoflon-windows-dev/eclipse-emoflon-windows-dev.zip |
0 commit comments