Skip to content

Commit 8de0628

Browse files
Sean LearySean Leary
authored andcommitted
pipeline-updates - disable deployment.yml workflow for now (it's not set up in secrets yet)
1 parent 569be9d commit 8de0628

File tree

1 file changed

+77
-76
lines changed

1 file changed

+77
-76
lines changed

.github/workflows/deployment.yml

Lines changed: 77 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -4,79 +4,80 @@
44
# * https://github.com/actions/setup-java/blob/v3.13.0/docs/advanced-usage.md#Publishing-using-Apache-Maven
55
#
66

7-
name: Deployment workflow
8-
9-
on:
10-
release:
11-
types: [published]
12-
13-
jobs:
14-
# old-school build and jar method. No tests run or compiled.
15-
publish-1_6:
16-
name: Publish Java 1.6 to GitHub Release
17-
runs-on: ubuntu-latest
18-
permissions:
19-
contents: write
20-
steps:
21-
- uses: actions/checkout@v4
22-
- name: Setup java
23-
uses: actions/setup-java@v1
24-
with:
25-
java-version: 1.6
26-
- name: Compile Java 1.6
27-
run: |
28-
mkdir -p target/classes
29-
javac -version
30-
javac -source 1.6 -target 1.6 -d target/classes/ src/main/java/org/json/*.java
31-
- name: Create JAR 1.6
32-
run: |
33-
jar cvf "target/org.json-1.6-${{ github.ref_name }}.jar" -C target/classes .
34-
- name: Add 1.6 Jar To Release
35-
uses: softprops/action-gh-release@v1
36-
with:
37-
append_body: true
38-
files: |
39-
target/*.jar
40-
publish:
41-
name: Publish Java 8 to Maven Central and GitHub Release
42-
runs-on: ubuntu-latest
43-
permissions:
44-
contents: write
45-
packages: write
46-
steps:
47-
- uses: actions/checkout@v4
48-
- name: Set up Java for publishing to Maven Central Repository
49-
uses: actions/setup-java@v3
50-
with:
51-
# Use lowest supported LTS Java version
52-
java-version: '8'
53-
distribution: 'temurin'
54-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
55-
server-username: MAVEN_USERNAME # env variable for username in deploy
56-
server-password: MAVEN_PASSWORD # env variable for token in deploy
57-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
58-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
59-
60-
- name: Publish to the Maven Central Repository
61-
run: mvn --batch-mode deploy
62-
env:
63-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
64-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
65-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
66-
67-
- name: Add Jar To Release
68-
uses: softprops/action-gh-release@v1
69-
with:
70-
append_body: true
71-
files: |
72-
target/*.jar
73-
# - name: Set up Java for publishing to GitHub Packages
74-
# uses: actions/setup-java@v3
75-
# with:
76-
# # Use lowest supported LTS Java version
77-
# java-version: '8'
78-
# distribution: 'temurin'
79-
# - name: Publish to GitHub Packages
80-
# run: mvn --batch-mode deploy
81-
# env:
82-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7+
# COMMENTING OUT UNTIL SECRETS CAN BE ADDED
8+
#name: Deployment workflow
9+
#
10+
#on:
11+
# release:
12+
# types: [published]
13+
#
14+
#jobs:
15+
# # old-school build and jar method. No tests run or compiled.
16+
# publish-1_6:
17+
# name: Publish Java 1.6 to GitHub Release
18+
# runs-on: ubuntu-latest
19+
# permissions:
20+
# contents: write
21+
# steps:
22+
# - uses: actions/checkout@v4
23+
# - name: Setup java
24+
# uses: actions/setup-java@v1
25+
# with:
26+
# java-version: 1.6
27+
# - name: Compile Java 1.6
28+
# run: |
29+
# mkdir -p target/classes
30+
# javac -version
31+
# javac -source 1.6 -target 1.6 -d target/classes/ src/main/java/org/json/*.java
32+
# - name: Create JAR 1.6
33+
# run: |
34+
# jar cvf "target/org.json-1.6-${{ github.ref_name }}.jar" -C target/classes .
35+
# - name: Add 1.6 Jar To Release
36+
# uses: softprops/action-gh-release@v1
37+
# with:
38+
# append_body: true
39+
# files: |
40+
# target/*.jar
41+
# publish:
42+
# name: Publish Java 8 to Maven Central and GitHub Release
43+
# runs-on: ubuntu-latest
44+
# permissions:
45+
# contents: write
46+
# packages: write
47+
# steps:
48+
# - uses: actions/checkout@v4
49+
# - name: Set up Java for publishing to Maven Central Repository
50+
# uses: actions/setup-java@v3
51+
# with:
52+
# # Use lowest supported LTS Java version
53+
# java-version: '8'
54+
# distribution: 'temurin'
55+
# server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
56+
# server-username: MAVEN_USERNAME # env variable for username in deploy
57+
# server-password: MAVEN_PASSWORD # env variable for token in deploy
58+
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
59+
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
60+
#
61+
# - name: Publish to the Maven Central Repository
62+
# run: mvn --batch-mode deploy
63+
# env:
64+
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
65+
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
66+
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
67+
#
68+
# - name: Add Jar To Release
69+
# uses: softprops/action-gh-release@v1
70+
# with:
71+
# append_body: true
72+
# files: |
73+
# target/*.jar
74+
# # - name: Set up Java for publishing to GitHub Packages
75+
# # uses: actions/setup-java@v3
76+
# # with:
77+
# # # Use lowest supported LTS Java version
78+
# # java-version: '8'
79+
# # distribution: 'temurin'
80+
# # - name: Publish to GitHub Packages
81+
# # run: mvn --batch-mode deploy
82+
# # env:
83+
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)