Skip to content

Commit 22948e3

Browse files
committed
Update release.yml
test doc generation update
1 parent 06e819f commit 22948e3

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
2-
release:
3-
types: [published]
2+
[push]
3+
# release:
4+
# types: [published]
45

56
name: Release
67

@@ -21,22 +22,25 @@ jobs:
2122
run: mvn package --file pom.xml -DskipTests=true
2223
- name: Create temp artifacts apidocs folder
2324
run: mkdir apidocs
24-
- name: Create GitHub Release
25-
uses: softprops/action-gh-release@v1
26-
with:
27-
# body_path: ${{ github.workflow }}-CHANGELOG.txt
28-
files: ./target/*.jar
29-
draft: true
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 }}
25+
# - name: Create GitHub Release
26+
# uses: softprops/action-gh-release@v1
27+
# with:
28+
## body_path: ${{ github.workflow }}-CHANGELOG.txt
29+
# files: ./target/*.jarln -s /data/to/zip/data.txt data.txt
30+
# draft: true
31+
# env:
32+
# 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 }}
3738

3839
- name: Zip docs
39-
run: zip -r apidocs/docs.zip splunk/target/apidocs
40+
run: |
41+
cd splunk/target/apidocs
42+
zip -r ./../../../apidocs/docs.zip ./*
43+
cd ../../..
4044
4145
- name: Upload Artifact
4246
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)