Skip to content

Commit

Permalink
Publication added.
Browse files Browse the repository at this point in the history
  • Loading branch information
jisoldi committed Aug 22, 2024
1 parent 70f0c88 commit 275789a
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 116 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Java CI

on: [push]
on:
- push
- workflow_dispatch

jobs:
build:
Expand All @@ -17,5 +19,5 @@ jobs:
- name: Publish package
run: gradle publish
env:
GITHUB_ACTOR: jisoldi
GITHUB_ACTOR: ${{ env.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

# Ignore Gradle build output directory
build
.idea
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

39 changes: 0 additions & 39 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/encodings.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/gradle.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/sbt.xml

This file was deleted.

7 changes: 6 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/austral-ingsis/library")
url = uri("https://maven.pkg.github.com/austral-ingsis/ci-cd-library")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

0 comments on commit 275789a

Please sign in to comment.