Skip to content

Commit 67285c1

Browse files
authored
Merge pull request #4 from wanjunlei/java
Support for automatic publishing
2 parents 270293a + 22cd7f8 commit 67285c1

File tree

8 files changed

+60
-532
lines changed

8 files changed

+60
-532
lines changed

.github/workflows/conformance.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Maven Publish
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
tags:
7+
- '*'
8+
paths:
9+
- '.github/workflows/**'
10+
- 'functions-framework-api/pom.xml'
11+
- 'functions-framework-api/src/**'
12+
- 'functions-framework-invoker/pom.xml'
13+
- 'functions-framework-invoker/src/main/**'
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-18.04
18+
steps:
19+
- name: Check out Git repository
20+
uses: actions/checkout@v3
21+
22+
- name: Install Java and Maven
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 11
26+
27+
- name: Publish framework API
28+
uses: samuelmeuli/action-maven-publish@v1
29+
with:
30+
directory: functions-framework-api
31+
gpg_private_key: ${{ secrets.GPG_KEY }}
32+
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
33+
nexus_username: ${{ secrets.OSSRH_USER }}
34+
nexus_password: ${{ secrets.OSSRH_PASSWORD }}
35+
36+
- name: Publish framework invoker
37+
uses: samuelmeuli/action-maven-publish@v1
38+
with:
39+
directory: functions-framework-invoker
40+
gpg_private_key: ${{ secrets.GPG_KEY }}
41+
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
42+
nexus_username: ${{ secrets.OSSRH_USER }}
43+
nexus_password: ${{ secrets.OSSRH_PASSWORD }}

.github/workflows/unit.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)