Skip to content

Commit

Permalink
Merge pull request #803 from CROSSINGTUD/fix/release-action
Browse files Browse the repository at this point in the history
Fix job that creates releases on GitHub
  • Loading branch information
swissiety authored Jan 31, 2025
2 parents 8180497 + 693ab25 commit e235bd2
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/deploy_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ jobs:
OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }}
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PW }}

# Prepare for GitHub release
- name: Zip JavaCryptographicArchitecture folder
run: |
echo "Zipping the JavaCryptographicArchitecture folder..."
zip -r apps/JavaCryptographicArchitecture.zip CryptoAnalysis/src/test/resources/rules/JavaCryptographicArchitecture
- name: Copy Examples.jar
run: cp -r CryptoAnalysisTargets/CogniCryptDemoExample/Examples.jar apps/

- name: Create artefact for released files
uses: actions/upload-artifact@v4
with:
name: released-files
path: apps/

synchronize:
runs-on: ubuntu-latest
needs: deployment
Expand Down Expand Up @@ -89,14 +104,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Zip JavaCryptographicArchitecture folder
run: |
echo "Zipping the JavaCryptographicArchitecture folder..."
zip -r JavaCryptographicArchitecture.zip CryptoAnalysis/src/test/resources/rules/JavaCryptographicArchitecture
- name: Load released files
uses: actions/download-artifact@v4
with:
name: released-files
path: apps/

- name: Create GitHub Release
run: |
gh release create "$VERSION" ./apps/* "CryptoAnalysisTargets/CogniCryptDemoExample/Examples.jar" "JavaCryptographicArchitecture.zip" \
--title "$VERSION" --notes-file release_notes.txt
gh release create "$VERSION" ./apps/* --title "$VERSION" --notes-file release_notes.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Delete artifacts
uses: geekyeggo/delete-artifact@v5
with:
name: released-files

0 comments on commit e235bd2

Please sign in to comment.