Skip to content

Commit

Permalink
Zip (#311)
Browse files Browse the repository at this point in the history
* Add release workflow

* Update release workflow

* Update release workflow

* Update release workflow
  • Loading branch information
d-gregorczyk authored Sep 12, 2024
1 parent 786be44 commit b6307f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/copy_images.sh → .github/prepare_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ cp -R asciidoc/css sdpi-supplement/css
cp -R asciidoc/fonts sdpi-supplement/fonts
rm -rf sdpi-supplement/.asciidoctor
rm -rf sdpi-supplement/readme.md

sudo apt-get install zip gzip tar
zip -r "sdpi-supplement-$1.zip" sdpi-supplement
2 changes: 1 addition & 1 deletion .github/workflows/feature-review-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
working-directory: .ci/asciidoc-converter

- name: Generate PlantUML diagrams and copy images
run: .github/copy_images.sh
run: .github/prepare_artifacts.sh "x.x.x"

- name: Extract branch name
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/latest-master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
working-directory: .ci/asciidoc-converter

- name: Generate PlantUML diagrams and copy images
run: .github/copy_images.sh
run: .github/prepare_artifacts.sh "x.x.x"

- name: Upload artifact
# if: success() && github.ref == 'refs/heads/master'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
working-directory: .ci/asciidoc-converter

- name: Generate PlantUML diagrams and copy images
run: .github/copy_images.sh
run: .github/prepare_artifacts.sh "${{ github.ref_name }}"

- name: Upload artifact
# if: success() && github.ref == 'refs/heads/master'
Expand All @@ -57,5 +57,5 @@ jobs:
name: "Release of ${{ github.ref_name }} for TI"
makeLatest: true
body: "[📋Please click here for a detailed changelog](https://github.com/IHE/DEV.SDPi/blob/${{ github.ref_name }}/CHANGELOG.md)"
artifacts: "sdpi-supplement.zip"
artifacts: "sdpi-supplement-${{ github.ref_name }}.zip"

0 comments on commit b6307f8

Please sign in to comment.