Skip to content

Commit

Permalink
Fix Github Packages upload (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Jul 31, 2020
1 parent db5c48a commit 2f7d48c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:
branches:
- 'release/*'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:
branches:
- 'master'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/PublishingPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PublishingPlugin : Plugin<Project> {
maven.setUrl("https://maven.pkg.github.com/mateuszkwiecinski/easylauncher-gradle-plugin")
with(maven.credentials) {
username = "mateuszkwiecinski"
password = findConfig("GH_TOKEN")
password = findConfig("GITHUB_TOKEN")
}
}
}
Expand Down

0 comments on commit 2f7d48c

Please sign in to comment.