File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments