@@ -16,57 +16,57 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - name : Checkout
20- uses : actions/checkout@v2
21- - name : Set up JDK 17 enviroment on ubuntu-latest...
22- uses : actions/setup-java@v2
23- with :
24- java-version : ' 17'
25- distribution : ' temurin'
26- cache : maven
27- - name : Build mellophone2 with maven
28- run : mvn clean package
29- - name : Extract pom project version
30- run : echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
31- id : projectversiongroup
32- - uses : papeloto/action-zip@v1
33- with :
34- files :
35- target/mellophone2-${{ steps.projectversiongroup.outputs.version }}.jar
36- target/classes/application.yml
37- target/classes/config/config.xml
38- dest : ./artifact_for_ftp/mellophone2-${{ steps.projectversiongroup.outputs.version }}.zip
39- - name : Archive production artifacts
40- uses : actions/upload-artifact@v2
41- with :
19+ - name : Checkout
20+ uses : actions/checkout@v2
21+ - name : Set up JDK 17 enviroment on ubuntu-latest...
22+ uses : actions/setup-java@v2
23+ with :
24+ java-version : ' 17'
25+ distribution : ' temurin'
26+ cache : maven
27+ - name : Build mellophone2 with maven
28+ run : mvn clean package
29+ - name : Extract pom project version
30+ run : echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
31+ id : projectversiongroup
32+ - uses : papeloto/action-zip@v1
33+ with :
34+ files :
35+ target/mellophone2-${{ steps.projectversiongroup.outputs.version }}.jar
36+ target/classes/application.yml
37+ target/classes/config/config.xml
38+ dest : ./artifact_for_ftp/mellophone2-${{ steps.projectversiongroup.outputs.version }}.zip
39+ - name : Archive production artifacts
40+ uses : actions/upload-artifact@v4
41+ with :
4242 name : mellophone2-${{ steps.projectversiongroup.outputs.version }}
4343 path : ./artifact_for_ftp/mellophone2-${{ steps.projectversiongroup.outputs.version }}.zip
44- - name : 📂 Upload artifact to ftp
45- uses :
SamKirkland/[email protected] 46- with :
44+ - name : 📂 Upload artifact to ftp
45+ uses :
SamKirkland/[email protected] 46+ with :
4747 server : share.curs.ru
4848 username : ${{ secrets.FTP_CURS_LOGIN }}
4949 password : ${{ secrets.FTP_CURS_PWD }}
5050 server-dir : development/curs-mellophone2/
5151 local-dir : ./artifact_for_ftp/
52- - name : Build docker image
53- run : |
54- docker build -t curs/mellophone2 .
55- - name : Log in to Docker Hub
56- if : success() && github.ref == 'refs/heads/main'
57- uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
58- with :
59- username : ${{ secrets.DOCKER_USERNAME }}
60- password : ${{ secrets.DOCKER_PASSWORD }}
61- - name : Push
62- if : success() && github.ref == 'refs/heads/main'
63- run : |
64- docker push curs/mellophone2:latest
65- - name : Build documentation
66- run : |
67- ./_builddoc.sh
68- - name : Run deploy doc sight
69- uses : JamesIves/github-pages-deploy-action@v4
70- with :
71- branch : gh-pages
72- folder : target-doc
52+ - name : Build docker image
53+ run : |
54+ docker build -t curs/mellophone2 .
55+ - name : Log in to Docker Hub
56+ if : success() && github.ref == 'refs/heads/main'
57+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
58+ with :
59+ username : ${{ secrets.DOCKER_USERNAME }}
60+ password : ${{ secrets.DOCKER_PASSWORD }}
61+ - name : Push
62+ if : success() && github.ref == 'refs/heads/main'
63+ run : |
64+ docker push curs/mellophone2:latest
65+ - name : Build documentation
66+ run : |
67+ ./_builddoc.sh
68+ - name : Run deploy doc sight
69+ uses : JamesIves/github-pages-deploy-action@v4
70+ with :
71+ branch : gh-pages
72+ folder : target-doc
0 commit comments