Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ea3ddd

Browse files
-q to package
1 parent d306e79 commit 5ea3ddd

File tree

1 file changed

+21
-42
lines changed

1 file changed

+21
-42
lines changed

‎.github/workflows/build.yml‎

Lines changed: 21 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This file must be in the .github/workflows folder for git actions to work
2-
# but currently is disabled, since builds are being done by jenkins
1+
# This file must be in the .github/workflows folder for GitHub Actions to work
32
name: Java CI
43

54
on:
@@ -16,19 +15,18 @@ jobs:
1615

1716
- name: Set up JDK 11
1817
uses: actions/setup-java@v3
19-
2018
with:
2119
java-version: "11"
2220
distribution: "adopt"
23-
# NEATO ! CACHE !!!!
2421
cache: "maven"
2522

2623
- name: Install Missing Dependencies
2724
run: sudo apt-get install -y libv4l-0 ffmpeg
2825

2926
- name: Dependency Test # installs all dependencies
3027
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
31-
- name: Build with Maven # currently cannot test opencv
28+
29+
- name: Build with Maven # currently cannot test OpenCV
3230
run: mvn clean verify -q -DskipTests
3331

3432
- name: Get next version
@@ -39,44 +37,25 @@ jobs:
3937
increment: patch
4038

4139
- name: Package with Maven
42-
run: "mvn package -DskipTests -Dversion=${{ steps.version.outputs.version }} -q"
40+
run: mvn package -q -DskipTests -Dversion=${{ steps.version.outputs.version }} -q
4341

44-
# - name: Pre Release
45-
# if: github.ref != 'refs/heads/develop'
46-
# id: prerelease
47-
# uses: softprops/action-gh-release@v1
48-
# with:
49-
# token: ${{ secrets.ACCESS_TOKEN }}
50-
# prerelease: true
51-
# files: ./target/myrobotlab.zip
52-
# name: "Pre ${{ steps.version.outputs.version }} Nixie"
53-
# tag_name: ${{ steps.version.outputs.version }}
54-
# generate_release_notes: true
55-
# body_path: ./release-template.md
42+
- name: Rename Artifact
43+
run: mv target/myrobotlab.zip target/myrobotlab-${{ steps.version.outputs.version }}.zip
44+
45+
- name: Configure AWS Credentials
46+
uses: aws-actions/configure-aws-credentials@v2
47+
with:
48+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
49+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
50+
aws-region: us-east-1
5651

57-
# # - name: Publish Test Report
58-
# # if: success() || failure()
59-
# # uses: scacap/action-surefire-report@v1
52+
- name: Upload Artifact to S3
53+
run: |
54+
FILE="target/myrobotlab-${{ steps.version.outputs.version }}.zip"
55+
BUCKET="myrobotlab-repo"
6056
61-
# - name: Add Coverage to PR
62-
# id: jacoco
63-
# uses: madrapps/jacoco-report@v1.6.1
64-
# with:
65-
# paths: |
66-
# ${{ github.workspace }}/target/site/jacoco/jacoco.xml
67-
# token: ${{ secrets.ACCESS_TOKEN }}
68-
# debug-mode: true
69-
# min-coverage-overall: 40
70-
# min-coverage-changed-files: 60
57+
echo "Uploading $FILE to S3 bucket $BUCKET..."
58+
aws s3 cp "$FILE" "s3://$BUCKET/" --acl public-read
7159
72-
# - name: Release
73-
# if: github.ref == 'refs/heads/develop'
74-
# id: release
75-
# uses: softprops/action-gh-release@v1
76-
# with:
77-
# token: ${{ secrets.ACCESS_TOKEN }}
78-
# files: ./target/myrobotlab.zip
79-
# name: "${{ steps.version.outputs.version }} Nixie"
80-
# tag_name: ${{ steps.version.outputs.version }}
81-
# generate_release_notes: true
82-
# body_path: ./release-template.md
60+
echo "Updating permalink myrobotlab.zip..."
61+
aws s3 cp "$FILE" "s3://$BUCKET/myrobotlab.zip" --acl public-read

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /