Skip to content

Commit 6bc8cf2

Browse files
authored
Update release.yml
1 parent c341f37 commit 6bc8cf2

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
name: Build and Release
1111
runs-on: ubuntu-latest
12-
12+
1313
strategy:
1414
matrix:
1515
# Define the target platforms
@@ -65,23 +65,11 @@ jobs:
6565
mkdir -p release
6666
tar -czf release/tiny-nav-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }}.tar.gz tiny-nav${{ matrix.suffix }} LICENSE README.md
6767
68-
- name: Upload artifacts
69-
uses: actions/upload-artifact@v3
70-
with:
71-
name: tiny-nav-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }}
72-
path: release/*
73-
74-
create-release:
75-
needs: build
76-
runs-on: ubuntu-latest
77-
steps:
78-
- name: Download all artifacts
79-
uses: actions/download-artifact@v3
80-
8168
- name: Create Release
8269
uses: softprops/action-gh-release@v1
70+
if: startsWith(github.ref, 'refs/tags/')
8371
with:
8472
files: |
85-
**/tiny-nav-*.tar.gz
73+
release/tiny-nav-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }}.tar.gz
8674
env:
8775
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)