Skip to content

Commit

Permalink
Change build action to automatically deploy on push to master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Jul 29, 2024
1 parent 15790ae commit 4f716be
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 19 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Snapshot with Maven
on:
push:
branches:
- master

jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout latest
uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Deploy Snapshot
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
17 changes: 0 additions & 17 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jcloc · [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/seart-group/jcloc/test.yml)](https://github.com/seart-group/jcloc/actions/workflows/test.yml) [![Maven Central](https://img.shields.io/maven-central/v/ch.usi.si.seart/jcloc)](https://central.sonatype.com/artifact/ch.usi.si.seart/jcloc) [![javadoc](https://javadoc.io/badge2/ch.usi.si.seart/jcloc/javadoc.svg)](https://javadoc.io/doc/ch.usi.si.seart/jcloc) [![MIT license](https://img.shields.io/github/license/seart-group/jcloc)](https://github.com/seart-group/jcloc/blob/master/LICENSE)
# jcloc · [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/seart-group/jcloc/deploy.yml)](https://github.com/seart-group/jcloc/actions/workflows/deploy.yml) [![Maven Central](https://img.shields.io/maven-central/v/ch.usi.si.seart/jcloc)](https://central.sonatype.com/artifact/ch.usi.si.seart/jcloc) [![javadoc](https://javadoc.io/badge2/ch.usi.si.seart/jcloc/javadoc.svg)](https://javadoc.io/doc/ch.usi.si.seart/jcloc) [![MIT license](https://img.shields.io/github/license/seart-group/jcloc)](https://github.com/seart-group/jcloc/blob/master/LICENSE)

Java wrapper for the [cloc](https://github.com/AlDanial/cloc) CLI tool. You can use the library by including the
following dependency in your Maven project:
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jcloc · [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/seart-group/jcloc/test.yml)](https://github.com/seart-group/jcloc/actions/workflows/test.yml) [![Maven Central](https://img.shields.io/maven-central/v/ch.usi.si.seart/jcloc)](https://central.sonatype.com/artifact/ch.usi.si.seart/jcloc) [![javadoc](https://javadoc.io/badge2/ch.usi.si.seart/jcloc/javadoc.svg)](https://javadoc.io/doc/ch.usi.si.seart/jcloc) [![MIT license](https://img.shields.io/github/license/seart-group/jcloc)](https://github.com/seart-group/jcloc/blob/master/LICENSE)
# jcloc · [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/seart-group/jcloc/deploy.yml)](https://github.com/seart-group/jcloc/actions/workflows/deploy.yml) [![Maven Central](https://img.shields.io/maven-central/v/ch.usi.si.seart/jcloc)](https://central.sonatype.com/artifact/ch.usi.si.seart/jcloc) [![javadoc](https://javadoc.io/badge2/ch.usi.si.seart/jcloc/javadoc.svg)](https://javadoc.io/doc/ch.usi.si.seart/jcloc) [![MIT license](https://img.shields.io/github/license/seart-group/jcloc)](https://github.com/seart-group/jcloc/blob/master/LICENSE)

Java wrapper for the [cloc](https://github.com/AlDanial/cloc) CLI tool. You can use the library by including the
following dependency in your Maven project:
Expand Down

0 comments on commit 4f716be

Please sign in to comment.