File tree Expand file tree Collapse file tree 4 files changed +36
-3
lines changed
Expand file tree Collapse file tree 4 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Build Snap Package
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Build snap
17+ uses : snapcore/action-build@v1
18+ id : snapcraft
19+
20+ - name : Upload snap artifact
21+ uses : actions/upload-artifact@v4
22+ with :
23+ name : snap-package
24+ path : ${{ steps.snapcraft.outputs.snap }}
25+
26+ - name : Release snap
27+ uses : softprops/action-gh-release@v1
28+ if : startsWith(github.ref, 'refs/tags/')
29+ with :
30+ files : ${{ steps.snapcraft.outputs.snap }}
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ java -cp bin wagemaker.co.uk.main.Launcher
5555
5656## Links
5757
58+ - Home: https://gcclinux.github.io/smalltextpad/
5859- Project: https://github.com/gcclinux/smalltextpad
5960- Latest releases: https://github.com/gcclinux/smalltextpad/releases/latest
6061
Original file line number Diff line number Diff line change 11title : SmallTextPad
22description : A lightweight Java text editor with encryption and multi-language support
33theme : jekyll-theme-cayman
4- show_downloads : false
4+ show_downloads : true
55plugins :
66 - jekyll-seo-tag
77 - jekyll-sitemap
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ jar cfm classes/artifacts/SmallTextPad.jar src/META-INF/MANIFEST.MF -C bin . -C
2828echo " [run] Now testing newly created SmallTextPad.jar"
2929java -jar classes/artifacts/SmallTextPad.jar
3030
31- # echo "[run] Now creating smalltextpad_<version>_amd64.snap in the current directory"
32- # snapcraft pack --output=classes/artifacts/smalltextpad_$(grep '^version:' snap/snapcraft.yaml | awk '{print $2}' | tr -d "'")_amd64.snap
31+ echo " [run] Now creating smalltextpad_<version>_amd64.snap in the current directory"
32+ snapcraft pack --output=classes/artifacts/smalltextpad_$( grep ' ^version:' snap/snapcraft.yaml | awk ' {print $2}' | tr -d " '" ) _amd64.snap
3333
3434
3535
You can’t perform that action at this time.
0 commit comments