File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Package and Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ permissions :
8+ contents : write
9+ jobs :
10+ run-tests :
11+ name : Release package
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v2
17+
18+ - name : Install modular
19+ run : |
20+ curl -s https://get.modular.com | sh -
21+ modular auth examples
22+
23+ - name : Install Mojo
24+ run : modular install mojo
25+
26+ - name : Add to PATH
27+ run : echo "/home/runner/.modular/pkg/packages.modular.com_mojo/bin" >> $GITHUB_PATH
28+
29+ - name : Create package
30+ run : mojo package lightbug_http -o lightbug_http.mojopkg
31+
32+ - name : Upload package to release
33+ uses : svenstaro/upload-release-action@v2
34+ with :
35+ file : lightbug_http.mojopkg
36+ tag : latest-build
37+ overwrite : true
You can’t perform that action at this time.
0 commit comments