Skip to content

Commit ee22a04

Browse files
committed
Update release.yml
reverting changes made for testing purpose.
1 parent 2280fda commit ee22a04

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
release:
3-
types: [prereleased]
3+
types: [published]
44

55
permissions:
66
contents: write
@@ -17,24 +17,23 @@ jobs:
1717
uses: actions/setup-java@v1
1818
with:
1919
java-version: 1.8
20-
# server-username: MAVEN_USERNAME
21-
# server-password: MAVEN_PASSWORD
22-
# server-id: splunk-artifactory
20+
server-username: MAVEN_USERNAME
21+
server-password: MAVEN_PASSWORD
22+
server-id: splunk-artifactory
2323
- name: build
2424
run: mvn package --file pom.xml -DskipTests=true
2525
- name: Create GitHub Release
2626
uses: softprops/action-gh-release@v1
2727
with:
28-
# body_path: ${{ github.workflow }}-CHANGELOG.txt
2928
files: ./splunk/target/*.jar
3029
draft: true
3130
env:
3231
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
# - name: Deploy to Artifactory
34-
# run: mvn --batch-mode deploy -DskipTests=true
35-
# env:
36-
# MAVEN_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
37-
# MAVEN_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
32+
- name: Deploy to Artifactory
33+
run: mvn --batch-mode deploy -DskipTests=true
34+
env:
35+
MAVEN_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
36+
MAVEN_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
3837

3938
- name: Upload Artifact
4039
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)