Skip to content

Commit

Permalink
add GH action to upload to amazon
Browse files Browse the repository at this point in the history
Add action to publish on tags.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and dcpleung committed May 13, 2020
1 parent b2911b7 commit b29882e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build PR with Maven

on:
push:
tags:
- '*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Checkout commits
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Upload build artifacts
uses: actions/upload-artifact@v1
with:
name: zephyr_eclipse_p2_repo
path: maven/repository/target/repository

- name: Upload to AWS S3
run: |
echo "publish latest docs"
aws s3 sync --quiet maven/repository/target/repository s3://builds.zephyrproject.org/eclipse-plugin --delete

0 comments on commit b29882e

Please sign in to comment.