Skip to content

Commit 303b839

Browse files
authored
Merge pull request #31 from maxkratz/feature/release-ci
Introduces CI mechanism to create releases on Github
2 parents 112e6f4 + 6f6d44f commit 303b839

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77
- 'testing/**'
8+
# Run pipeline for release tags
9+
tags:
10+
- 'v*.*.*'
811

912
jobs:
1013
# Build Eclipse eMoflon Linux user
@@ -114,3 +117,31 @@ jobs:
114117
with:
115118
name: eclipse-emoflon-windows-dev
116119
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

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ This repository is used to automatically build an Eclipse [eMoflon](https://gith
1717
Furthermore, all pattern matcher integrations for eMoflon (HiPE and Democles) will be installed manually via the [emoflon-dev-workspace](https://github.com/eMoflon/emoflon-ibex#how-to-develop).
1818

1919

20+
## Usage/Installation
21+
22+
**The latest release can be found [here](https://github.com/maxkratz/emoflon-eclipse-build/releases/latest).**
23+
Download an archive for the version you are looking for from the release page and extract it.
24+
25+
2026
## Runner requirements
2127

2228
In order to run the "Github Actions" pipeline you must ensure that you have at least one properly configured Linux and one Windows runner added to the Github project.

0 commit comments

Comments
 (0)