-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
|
||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>${env.GITHUB_ACTOR}</username> <!-- Automatically uses the GitHub username --> | ||
<password>${env.GITHUB_TOKEN}</password> <!-- Uses the GitHub Actions token for authentication --> | ||
</server> | ||
</servers> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish jFaaS:jFaaS:x.y.z to GitHub Packages | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version of the JAR to publish (e.g., 1.0.0, 1.0.1, etc.)' | ||
required: true | ||
default: '1.0-SNAPSHOT' # Optional, you can set a default version if you want | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Create jar file | ||
run: ./gradlew clean build && ./gradlew shadowJar | ||
|
||
- name: Deploy JAR to GitHub Packages | ||
run: mvn deploy:deploy-file -Dfile=./build/libs/jFaaS-all.jar -DgroupId=jfaas -DartifactId=jfaas -Dversion=${{ github.event.inputs.version }} -Dpackaging=jar -DrepositoryId=github -Durl=https://maven.pkg.github.com/sashkoristov/jFaaS -DgeneratePom=true -Dmaven.resolver.transport=wagon -e -X | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.