Skip to content

Commit d9cc99c

Browse files
author
Andreas Dann
committed
add deploy code for sootdiff
1 parent bf03369 commit d9cc99c

File tree

2 files changed

+43
-17
lines changed

2 files changed

+43
-17
lines changed

.github/workflows/maven-deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-java@v3
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
- name: Publish package
18+
run: mvn --batch-mode deploy
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/maven.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
1-
# This is a basic workflow to help you get started with Actions
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
23

3-
name: CI
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI with Maven
410

5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
711
on:
812
push:
9-
branches: [ master ]
13+
branches: [ main ]
1014
pull_request:
11-
branches: [ master ]
15+
branches: [ main ]
1216

13-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1417
jobs:
15-
# This workflow contains a single job called "build"
1618
build:
17-
# The type of runner that the job will run on
19+
1820
runs-on: ubuntu-latest
1921

20-
# Steps represent a sequence of tasks that will be executed as part of the job
2122
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
24-
25-
# Runs a set of commands using the runners shell
26-
- name: Run maven script
27-
uses: guillonapa/action-maven-cli/jdk8@master
23+
- uses: actions/checkout@v3
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v3
2826
with:
29-
lifecycle: 'clean package test'
27+
java-version: '11'
28+
distribution: 'adopt'
29+
cache: maven
30+
- name: Build with Maven
31+
run: mvn -B package --file pom.xml
32+
33+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
34+
# - name: Update dependency graph
35+
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 commit comments

Comments
 (0)