Skip to content

Commit ff5360e

Browse files
authored
Merge pull request #4 from GhostTypes/claude/manual-version-workflow-01E7LMMET2S44aWUvdxCF7Sh
Add release workflow
2 parents 9606540 + 590c551 commit ff5360e

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Create Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version number (e.g., v1.0.0)'
8+
required: true
9+
type: string
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Validate version format
23+
run: |
24+
VERSION="${{ inputs.version }}"
25+
if [[ ! $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
26+
echo "Warning: Version doesn't match semantic versioning (vX.Y.Z)"
27+
echo "Continuing anyway with: $VERSION"
28+
fi
29+
30+
- name: Create Release
31+
uses: softprops/action-gh-release@v1
32+
with:
33+
tag_name: ${{ inputs.version }}
34+
name: Release ${{ inputs.version }}
35+
draft: false
36+
prerelease: false
37+
body: |
38+
## Orca2FlashForge Converter ${{ inputs.version }}
39+
40+
Post-processing script for OrcaSlicer to convert G-code format to match Orca-FlashForge.
41+
This ensures proper ETA display on FlashForge printers and API compatibility.
42+
43+
### Installation
44+
45+
1. Download `convert.py` below
46+
2. Make it executable: `chmod +x convert.py`
47+
3. Add to OrcaSlicer's post-processing scripts
48+
49+
### Usage
50+
51+
```bash
52+
# Convert format only
53+
./convert.py file.gcode
54+
55+
# Convert format and add MD5 checksum for forge-x firmware
56+
./convert.py file.gcode --add-md5
57+
```
58+
files: |
59+
convert.py
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)