forked from rikard-sics/sifis-home
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Github Action for release of code and executable Jar files
Signed-off-by: Rikard Höglund <[email protected]>
1 parent
ea14128
commit 2fbcb19
Showing
2 changed files
with
52 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: deploy | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
|
||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8.0.x | ||
architecture: x64 | ||
|
||
- name: Build Jar files and prepare dependencies for applications | ||
run: | | ||
./build-edhoc-apps.sh | ||
./build-group-apps.sh | ||
- name: Get version | ||
id: tagName | ||
run: | | ||
VERSION=$(cat ./VERSION) | ||
echo "tag=$VERSION" >> $GITHUB_OUTPUT | ||
- name: Build Zip file | ||
run: | | ||
ARCHIVE_NAME="wp3-solutions-${{ steps.tagName.outputs.tag }}" | ||
ARCHIVE_FILE="${ARCHIVE_NAME}.zip" | ||
zip -r ${ARCHIVE_FILE} group-applications/*.jar | ||
zip -ur ${ARCHIVE_FILE} group-applications/lib | ||
zip -ur ${ARCHIVE_FILE} edhoc-applications/*.jar | ||
zip -ur ${ARCHIVE_FILE} edhoc-applications/lib | ||
zip -r Source.zip . -x *.jar -x *.class | ||
- name: Create a release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: v${{ steps.tagName.outputs.tag }} | ||
files: | | ||
./*.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters