Skip to content

Commit 14e318a

Browse files
committed
Release: v0.9.3
1 parent 32d333d commit 14e318a

3 files changed

Lines changed: 47 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: ./build/flutterguard-cli --version
3737

3838
- name: Upload build artifact
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
4141
name: flutterguard-cli-linux
4242
path: build/flutterguard-cli

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
CGO_ENABLED: 0
6666

6767
- name: Upload artifact
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
7070
name: ${{ matrix.artifact_name }}
7171
path: build/${{ matrix.artifact_name }}
@@ -82,7 +82,7 @@ jobs:
8282
uses: actions/checkout@v4
8383

8484
- name: Download all artifacts
85-
uses: actions/download-artifact@v3
85+
uses: actions/download-artifact@v4
8686
with:
8787
path: build
8888

RELEASE.md

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,26 @@ This document explains how to create and release new versions of FlutterGuard CL
55
## Creating a Release
66

77
### 1. Update Version
8+
89
Update the version constant in `cmd/root.go`:
910

1011
```go
1112
const Version = "1.1.0" // Update this
1213
```
1314

1415
### 2. Update CHANGELOG (Optional but recommended)
16+
1517
Create or update CHANGELOG.md with new features, fixes, and improvements.
1618

1719
### 3. Commit Changes
20+
1821
```bash
1922
git add cmd/root.go CHANGELOG.md
2023
git commit -m "Release v1.1.0"
2124
```
2225

2326
### 4. Create Git Tag
27+
2428
```bash
2529
git tag -a v1.1.0 -m "Release FlutterGuard CLI v1.1.0"
2630
git push origin main
@@ -32,6 +36,7 @@ git push origin v1.1.0
3236
When you push a tag starting with `v`, the GitHub Actions workflow automatically:
3337

3438
1. **Builds** the CLI for multiple platforms:
39+
3540
- Linux (amd64, arm64)
3641
- macOS (amd64, Apple Silicon/arm64)
3742
- Windows (amd64)
@@ -44,27 +49,59 @@ When you push a tag starting with `v`, the GitHub Actions workflow automatically
4449

4550
The build workflow creates binaries for:
4651

47-
| Platform | Architecture | Filename |
48-
|----------|--------------|----------|
49-
| Linux | x86_64 (amd64) | `flutterguard-cli-linux-amd64` |
50-
| Linux | ARM64 | `flutterguard-cli-linux-arm64` |
51-
| macOS | Intel (amd64) | `flutterguard-cli-darwin-amd64` |
52-
| macOS | Apple Silicon (arm64) | `flutterguard-cli-darwin-arm64` |
53-
| Windows | x86_64 (amd64) | `flutterguard-cli-windows-amd64.exe` |
52+
| Platform | Architecture | Filename |
53+
| -------- | --------------------- | ------------------------------------ |
54+
| Linux | x86_64 (amd64) | `flutterguard-cli-linux-amd64` |
55+
| Linux | ARM64 | `flutterguard-cli-linux-arm64` |
56+
| macOS | Intel (amd64) | `flutterguard-cli-darwin-amd64` |
57+
| macOS | Apple Silicon (arm64) | `flutterguard-cli-darwin-arm64` |
58+
| Windows | x86_64 (amd64) | `flutterguard-cli-windows-amd64.exe` |
5459

5560
## Troubleshooting
5661

5762
### Build Failed
63+
5864
Check the GitHub Actions logs at: `https://github.com/flutterguard/flutterguard-cli/actions`
5965

6066
### Release Not Created
67+
6168
- Verify the tag was pushed: `git push origin <tag-name>`
6269
- Check that tag starts with `v` (e.g., `v1.0.0`)
6370
- Review workflow logs for errors
6471

72+
### Deprecated artifact action error
73+
74+
If the workflow fails with a message like:
75+
76+
> This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v3
77+
78+
This usually means the tag you pushed points to an older commit where the workflows still used `actions/upload-artifact@v3`. Fix by retagging the latest commit (which uses `@v4`):
79+
80+
Option A: Create a new tag (recommended)
81+
82+
```bash
83+
git switch main
84+
git pull --ff-only
85+
git tag -a vX.Y.Z -m "Release FlutterGuard CLI vX.Y.Z"
86+
git push origin vX.Y.Z
87+
```
88+
89+
Option B: Move the existing tag to HEAD (force-update)
90+
91+
```bash
92+
# If a GitHub Release exists for the tag, delete it in the UI first
93+
git switch main
94+
git pull --ff-only
95+
git tag -fa vX.Y.Z -m "Release FlutterGuard CLI vX.Y.Z"
96+
git push origin vX.Y.Z --force
97+
```
98+
99+
After pushing, monitor the run at your repository’s Actions page.
100+
65101
## Continuous Integration
66102

67103
Every push to `main` or `develop` branches runs:
104+
68105
- Code formatting checks (`go fmt`)
69106
- Static analysis (`go vet`)
70107
- Unit tests (`go test`)

0 commit comments

Comments
 (0)