-
Notifications
You must be signed in to change notification settings - Fork 62
31 lines (29 loc) · 1.04 KB
/
ci-pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build pull-request to develop branch
on:
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
Build:
name: Build Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get latest Docker image
run: docker pull pi4j/pi4j-builder:2.0
- name: Build entire Pi4J Project in Docker
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: docker run --env MAVEN_USERNAME=$MAVEN_USERNAME --env MAVEN_PASSWORD=$MAVEN_PASSWORD --user "$(id -u):$(id -g)" --rm --volume $(pwd):/build pi4j/pi4j-builder:2.0 clean install -Pnative,cross-compile --batch-mode
- name: Make staging directory
run: mkdir staging
- name: Copy distribution files to staging
run: |
cp -r pi4j-distribution/target/*.deb staging
cp -r pi4j-distribution/target/*.zip staging
- name: Upload distribution files to staging
uses: actions/upload-artifact@v4
with:
name: pi4j-dist
path: staging