Skip to content

Commit 88d4be8

Browse files
committed
Add packaging workflow
1 parent 3510e66 commit 88d4be8

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+
8+
jobs:
9+
run-tests:
10+
name: Release package
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Install modular
18+
run: |
19+
curl -s https://get.modular.com | sh -
20+
modular auth examples
21+
22+
- name: Install Mojo
23+
run: modular install mojo
24+
25+
- name: Add to PATH
26+
run: echo "/home/runner/.modular/pkg/packages.modular.com_mojo/bin" >> $GITHUB_PATH
27+
28+
- name: Create package
29+
run: mojo lightbug_http src -o lightbug_http.mojopkg
30+
31+
- name: Upload package to release
32+
uses: svenstaro/upload-release-action@v2
33+
with:
34+
repo_token: ${{ secrets.TOKEN }}
35+
file: lightbug_http.mojopkg
36+
tag: latest-build
37+
overwrite: true

0 commit comments

Comments
 (0)