Skip to content

Commit d619db2

Browse files
committed
basic_120 Hello Publishing Web App!
1 parent fe8971e commit d619db2

3 files changed

Lines changed: 125 additions & 213 deletions

File tree

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Release--basic_120
2+
3+
on:
4+
push:
5+
branches:
6+
# branches-ignore:
7+
- basic_120
8+
9+
jobs:
10+
build:
11+
name: Create--Release--"basic_120"
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout--Code
16+
uses: actions/checkout@v2
17+
- name: Create--Release--for--Branch--"basic_120"
18+
id: create_release
19+
uses: actions/create-release@v1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
22+
with:
23+
tag_name: v0.120.1
24+
release_name: Project--"basic_120"--for--The--Release
25+
body: |
26+
### ABOUT
27+
- develop simple Java application with Gradle
28+
29+
### USAGE
30+
```bash
31+
# DO (download the zip file)
32+
wget https://github.com/cnruby/gradle_java/archive/v0.120.1.zip -O gradle_java-0.120.1.zip
33+
34+
# DO (unzip the file)
35+
unzip gradle_java-0.120.1.zip && cd gradle_java-0.120.1
36+
37+
# 1. change your bintray info
38+
39+
# DO (copy a JCenter's username and password sample file)
40+
cp ./jcenter.properties.sample ~/jcenter.properties
41+
42+
# DO (edit the real JCenter's username and password)
43+
# !!! first sign in JCenter by JCenter's username and password
44+
nano ~/jcenter.properties
45+
46+
# DO (edit the gradle properties file)
47+
nano ./gradle.properties
48+
# FILE (./gradle.properties)
49+
bintrayRepo=<your_bintray_repo>
50+
libraryName=<your_library_name>
51+
group=<your_group_name>
52+
version=<your_library_version>
53+
description=<your_library_description>
54+
vcsUrl=<your_library_github_repo_link>
55+
56+
# DO (check the web application)
57+
./gradlew -q check
58+
# >> Result: nothing
59+
60+
# 2. Usage for the project
61+
62+
# DO (spin up the web application)
63+
./gradlew -q appRun
64+
65+
curl http://127.0.0.1:8080/
66+
curl http://127.0.0.1:8080/hello
67+
68+
# DO (Enter Ctrl+C, then stop web server)
69+
70+
# 3. MUST Push the web application to your GitHub
71+
72+
# 4. Publish the library to bintray.com
73+
./gradlew clean build bintrayUpload
74+
75+
# 5. Goto bintray.com
76+
# DO (add your package to jcenter)
77+
# !!! waiting for approved
78+
79+
# 6. Test the published web application
80+
rm -rf _gradle_java.war
81+
wget https://jcenter.bintray.com/de/iotoi/basic_120/0.120.1/basic_120-0.120.1.war -O _gradle_java.war
82+
docker build --tag=120_gradle_java_image .
83+
docker container rm 120_gradle_java_container
84+
docker run -d --name=120_gradle_java_container -p 80:8080 120_gradle_java_image
85+
sleep 5 && nc -vz localhost 80
86+
curl http://127.0.0.1:80/
87+
curl http://127.0.0.1:80/hello
88+
docker stop 120_gradle_java_container
89+
```
90+
draft: false
91+
prerelease: false

.github/workflows/gradle-actions.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)