Skip to content

Commit f4a3f7e

Browse files
committed
update workflows/appimage-release.yml
1 parent 160170c commit f4a3f7e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: appimage-release
22
on:
33
push:
4-
branches: [ main ]
4+
tags:
5+
- 'v*'
56
jobs:
67
appimage:
78
runs-on: ubuntu-20.04
@@ -14,12 +15,15 @@ jobs:
1415
export ACTION_MODE=true
1516
cd appimage
1617
docker-compose up
17-
- uses: actions/upload-artifact@v3
18+
19+
- name: upload artifact
20+
uses: actions/upload-artifact@v3
1821
with:
1922
name: deepin-calculator.AppImage
2023
path: ./appimage/deepin-calculator/build/deepin-calculator.AppImage
21-
- uses: ncipollo/release-action@v1
22-
if: startsWith(github.ref, 'refs/tags/v')
24+
25+
- name: create release
26+
uses: ncipollo/release-action@v1
2327
with:
24-
artifacts: "appimage-release/deepin-calculator.AppImage"
28+
artifacts: "./appimage/deepin-calculator/build/deepin-calculator.AppImage"
2529
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)