Skip to content

Commit f981dd4

Browse files
authored
Merge pull request #27 from Moosems/main
Add packaging workflow
2 parents 1b10034 + ca2de1e commit f981dd4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/package.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)