Skip to content

Commit e0a2048

Browse files
Releases (#24)
* Archive everything as an artefact * Generate products and p2 separately * ? * ? * ? * ? * ? * fine * oh good * doc
1 parent 6dd8be1 commit e0a2048

File tree

5 files changed

+69
-113
lines changed

5 files changed

+69
-113
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,24 @@ jobs:
2525
- name: Build cs-studio
2626
working-directory: ./cs-studio
2727
run: mvn verify -Dcs-studio=false -Declipse=false -Dtycho.localArtifacts=ignore -Dcsstudio.composite.repo=p2repo -DskipTests=true
28-
- name: Upload zip
28+
- name: Upload products
2929
uses: actions/upload-artifact@v4
3030
with:
31-
name: cs-studio
31+
name: cs-studio-products
3232
path: |
33-
cs-studio/product/repository/target/products/*.zip
33+
cs-studio/product/repository/target/products/*.zip
3434
compression-level: 0
3535
if-no-files-found: error
36+
retention-days: 3
37+
- name: Upload p2 repo
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: cs-studio-p2
41+
path: |
42+
cs-studio
43+
!cs-studio/product/repository/target/products/**
44+
!cs-studio/build
45+
!cs-studio/workspace
46+
compression-level: 0
47+
if-no-files-found: error
48+
retention-days: 3

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: release
2+
on: push
3+
jobs:
4+
build:
5+
if: github.ref_type == 'tag'
6+
uses: ./.github/workflows/build.yml
7+
release:
8+
if: github.ref_type == 'tag'
9+
needs: [build]
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/download-artifact@v4
13+
with:
14+
name: cs-studio-p2
15+
path: cs-studio-p2/
16+
- uses: actions/download-artifact@v4
17+
with:
18+
name: cs-studio-products
19+
path: cs-studio-products/
20+
- name: Create GitHub Release
21+
env:
22+
GITHUB_TOKEN: ${{ github.token }}
23+
run: >-
24+
gh release create
25+
'${{ github.ref_name }}'
26+
--repo '${{ github.repository }}'
27+
--notes ""
28+
- name: Zip release
29+
run: >-
30+
zip -r cs-studio-p2.zip cs-studio-p2
31+
- name: Upload p2 to GitHub Release
32+
env:
33+
GITHUB_TOKEN: ${{ github.token }}
34+
run: >-
35+
gh release upload
36+
'${{ github.ref_name }}' cs-studio-p2.zip
37+
--repo '${{ github.repository }}'
38+
- name: Upload products to GitHub Release
39+
env:
40+
GITHUB_TOKEN: ${{ github.token }}
41+
run: >-
42+
gh release upload
43+
'${{ github.ref_name }}' cs-studio-products/*.zip
44+
--repo '${{ github.repository }}'

Jenkinsfile

Lines changed: 0 additions & 104 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
Top level repository for build of cs-studio with isis customisations
44

5+
# Release process
6+
7+
```
8+
git tag 2025.01.01 # Replace with today's date.
9+
git push origin tag 2025.01.01
10+
```
11+
12+
Release will be built automatically by github actions. After it builds, manually deploy the p2 site to `icp_p2` area and binaries to `icp_binaries` area.
13+
514
# Developer build (maven)
615

716
```

parse_rules

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)