Skip to content

Commit 40cc741

Browse files
committed
Modificati workflow per EuroPass
1 parent 6cd54c3 commit 40cc741

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

.github/workflows/gh_release.yml

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
env:
1313
CV_BASE_NAME: cv-franci-matteo
14+
CV_EUROPASS_BASE_NAME: cv-europass-franci-matteo
1415

1516
jobs:
1617

@@ -48,5 +49,13 @@ jobs:
4849

4950
- name: Upload release artifact
5051
run: gh release upload ${{github.event.release.tag_name}} target/site/$CV_BASE_NAME-${{ github.ref_name }}.pdf
52+
env:
53+
GITHUB_TOKEN: ${{ github.TOKEN }}
54+
55+
- name: Create release artifact EuroPass
56+
run: cp -fr target/site/$CV_EUROPASS_BASE_NAME.pdf target/site/$CV_EUROPASS_BASE_NAME-${{ github.ref_name }}.pdf
57+
58+
- name: Upload release artifact EuroPass
59+
run: gh release upload ${{github.event.release.tag_name}} target/site/$CV_EUROPASS_BASE_NAME-${{ github.ref_name }}.pdf
5160
env:
5261
GITHUB_TOKEN: ${{ github.TOKEN }}

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ e il progetto si conforma al [Versionamento semantico](https://semver.org/spec/v
99

1010
### Aggiunto
1111

12-
- Versione EUROPASS estesa Curriculum Vitae
12+
- Modificati workflow per EuroPass
13+
- Versione EuroPass estesa Curriculum Vitae
1314

1415
## [1.2.0] - 2025-03-06
1516

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Curriculum Vitae Matteo Franci
22

33
[![Curriculum Vitae](https://img.shields.io/badge/Curriculum%20Vitae-LATEST-EE3020?labelColor=303030&style=flat&logo=adobe)](https://cv.fugerit.org/cv-franci-matteo.pdf)
4+
[![Curriculum Vitae EuroPass](https://img.shields.io/badge/Curriculum%20Vitae%20EuroPass-LATEST-EE3020?labelColor=303030&style=flat&logo=adobe)](https://cv.fugerit.org/cv-europass-franci-matteo.pdf)
45
[![Tenere un changelog v1.1.0 badge](https://img.shields.io/badge/changelog-Tenere%20un%20Changelog%20v1.1.0-%23E05735)](CHANGELOG.md)
56

67
Curriculum Vitae con approccio docs as code, basato su AsciiDoc
@@ -27,6 +28,10 @@ Tramite un semplice [workflow GitHub](.github/workflows/gh_pages.yml) viene crea
2728

2829
<https://cv.fugerit.org/cv-franci-matteo.pdf>
2930

31+
E per la versione EuroPass :
32+
33+
<https://cv.fugerit.org/cv-europass-franci-matteo.pdf>
34+
3035
## Risorse
3136

3237
Questo progetto è basato su :
@@ -38,4 +43,19 @@ Questo progetto è basato su :
3843

3944
## Convenzioni
4045

41-
Per i commit viene usata la specifica [Conventional Commits](https://www.conventionalcommits.org/)
46+
Per i commit viene usata la specifica [Conventional Commits](https://www.conventionalcommits.org/)
47+
48+
## Versione EuroPass
49+
50+
Esiste anche una versione che prova a replicare il formato EuroPass, anche se con delle limitazioni.
51+
52+
Build locale :
53+
54+
```shell
55+
npm install
56+
```
57+
58+
```shell
59+
cd europass
60+
../node_modules/asciidoctor-pdf/bin/asciidoctor-web-pdf europass-cv.adoc --template-require ./europass-template.js -o europass-cv.pdf
61+
```

pom.xml

+19
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<cv.dir>${project.basedir}</cv.dir>
2525
<cv.out>${project.basedir}/target/site</cv.out>
2626
<cv.pdf>cv-franci-matteo.pdf</cv.pdf>
27+
<cv.europass.pdf>cv-europass-franci-matteo.pdf</cv.europass.pdf>
2728
</properties>
2829

2930
<organization>
@@ -103,6 +104,24 @@
103104
<workingDirectory>${cv.dir}</workingDirectory>
104105
</configuration>
105106
</execution>
107+
<execution>
108+
<id>asciidoc generation europass</id>
109+
<goals>
110+
<goal>exec</goal>
111+
</goals>
112+
<phase>compile</phase>
113+
<configuration>
114+
<executable>${project.basedir}/node_modules/asciidoctor-pdf/bin/asciidoctor-web-pdf</executable>
115+
<arguments>
116+
<argument>-o</argument>
117+
<argument>${cv.out}/${cv.europass.pdf}</argument>
118+
<argument>${project.basedir}/europass/europass-cv.adoc</argument>
119+
<argument>--template-require</argument>
120+
<argument>${project.basedir}/europass/europass-template.js</argument>
121+
</arguments>
122+
<workingDirectory>${cv.dir}/europass</workingDirectory>
123+
</configuration>
124+
</execution>
106125
</executions>
107126

108127
</plugin>

0 commit comments

Comments
 (0)