Skip to content

Commit 0ef15a5

Browse files
author
morphqdd
committed
ci: release workflow — tag v* triggers stdlib source tarball
Packs std/ into `stdlib-<ver>.tar.gz` (no platform suffix — stdlib is pure Lake source) and attaches to the GitHub release. lakeup extracts under ~/.lake/lib/std/.
1 parent c8b9d16 commit 0ef15a5

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
pack:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: pack stdlib
18+
run: |
19+
VER="${GITHUB_REF_NAME#v}"
20+
tar -czf "stdlib-${VER}.tar.gz" std
21+
22+
- name: upload to release
23+
uses: softprops/action-gh-release@v2
24+
with:
25+
files: stdlib-*.tar.gz
26+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)