Skip to content

Commit 6bc3592

Browse files
author
Brean
committed
Changed --rm-dist to --clean
1 parent e56a6e6 commit 6bc3592

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ on:
77
push:
88
tags:
99
- 'v*'
10+
workflow_dispatch: # For manual triggering
1011

1112
jobs:
1213
release:
1314
runs-on: ubuntu-latest
1415

1516
steps:
1617
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Important for GoReleaser to fetch all tags
1720

1821
- name: Install Rust
1922
uses: actions-rs/toolchain@v1
2023
with:
2124
toolchain: stable
2225
override: true
26+
target: aarch64-unknown-linux-musl # Add the cross-compilation target
2327

2428
- name: Cache Cargo registry & index
2529
uses: actions/cache@v3
@@ -33,9 +37,6 @@ jobs:
3337
uses: goreleaser/goreleaser-action@v2
3438
with:
3539
version: latest
36-
37-
- name: Run GoReleaser
40+
args: release --clean # Updated from --rm-dist to --clean
3841
env:
3942
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
run: |
41-
goreleaser release --rm-dist

0 commit comments

Comments
 (0)