Skip to content

Commit bc44b04

Browse files
committed
Fix Docker/Maven deployment
1 parent c1aadc0 commit bc44b04

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

Diff for: .github/workflows/deploy.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ jobs:
4444
asset_name: grammars.zip
4545
asset_content_type: application/zip
4646
- name: Deploy Docker image to GitHub Packages
47-
run: ./scripts/deploy-docker
47+
uses: docker/build-push-action@v1
48+
with:
49+
username: ${{ github.actor }}
50+
password: ${{ secrets.GITHUB_TOKEN }}
51+
registry: docker.pkg.github.com
52+
repository: fwcd/kotlin-language-server/server
53+
tag_with_ref: true
4854
- name: Deploy Maven artifacts to GitHub Packages
49-
run: ./scripts/deploy-maven
55+
run: ./gradlew :shared:publish :server:publish
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ configure(subprojects.findAll { it.name != 'grammars' }) {
1919
name = 'GitHubPackages'
2020
url = uri('https://maven.pkg.github.com/fwcd/kotlin-language-server')
2121
credentials {
22-
username = project.findProperty('gpr.user') ?: System.getenv('GPR_USERNAME')
23-
password = project.findProperty('gpr.key') ?: System.getenv('GPR_PASSWORD')
22+
username = System.getenv('GITHUB_ACTOR')
23+
password = System.getenv('GITHUB_TOKEN')
2424
}
2525
}
2626
}

Diff for: scripts/deploy-docker

-4
This file was deleted.

Diff for: scripts/deploy-maven

-2
This file was deleted.

0 commit comments

Comments
 (0)