Skip to content

Commit 6376e1c

Browse files
committed
Added github action to build
1 parent f518634 commit 6376e1c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
build:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install Rune
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install "hyperify-rune>=0.1.6"
28+
29+
- name: Build files
30+
run: |
31+
# Create output directory if it doesn't exist
32+
mkdir -p output
33+
34+
# Build src files
35+
rune src json > output/rune.json
36+
37+
# List the contents of output directory to verify
38+
ls -la output/
39+
40+
- name: Create Release
41+
id: create_release
42+
uses: softprops/action-gh-release@v1
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
tag_name: ${{ github.ref }}
47+
name: Release ${{ github.ref }}
48+
body: |
49+
Changes in this Release
50+
- First Change
51+
- Second Change
52+
draft: false
53+
prerelease: false
54+
files: |
55+
output/rune.json

0 commit comments

Comments
 (0)