File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Upload artifact to release
2+
3+ on :
4+ # triggers on a new release
5+ release :
6+ types : [published]
7+
8+ # Sets permissions of the GITHUB_TOKEN
9+ permissions :
10+ contents : write
11+
12+ env :
13+ CV_BASE_NAME : cv-franci-matteo
14+
15+ jobs :
16+
17+ upload-release :
18+ name : Upload Release
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@main
24+
25+ - name : Setup JDK 21
26+ uses : actions/setup-java@main
27+ with :
28+ java-version : 21
29+ distribution : ' corretto'
30+ cache : maven
31+
32+ - name : Set up Node.js
33+ uses : actions/setup-node@main
34+ with :
35+ node-version : ' 20' # Puoi scegliere la versione di Node.js desiderata
36+
37+ - name : Install Mermaid CLI
38+ run : npm install -g @mermaid-js/mermaid-cli
39+
40+ - name : Verify Mermaid CLI installation
41+ run : mmdc --version
42+
43+ - name : Generate PDF
44+ run : mvn clean install
45+
46+ - name : Create release artifact
47+ run : cp -fr target/site/$CV_BASE_NAME.pdf target/site/$CV_BASE_NAME-${{ github.ref_name }}.pdf
48+
49+ - name : Upload release artifact
50+ run : gh release upload ${{github.event.release.tag_name}} target/site/$CV_BASE_NAME-${{ github.ref_name }}.pdf
51+ env :
52+ GITHUB_TOKEN : ${{ github.TOKEN }}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ e il progetto si conforma al [Versionamento semantico](https://semver.org/spec/v
1111
1212### Aggiunto
1313
14+ - Upload artifact on release
1415- badge con link all'ultima versione del CV PDF nel README
1516- sezione sulla CI con workflow GitHub nel README
1617
You can’t perform that action at this time.
0 commit comments