Skip to content

Commit eceee69

Browse files
committed
Upload to GitHub releases with pyuploadtool
1 parent e98bd00 commit eceee69

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/build.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,20 @@ jobs:
6464
name: artifacts
6565
path: ./out/*
6666

67-
- name: Upload to releases
68-
if: github.event_name != 'pull_request' && github.ref_name == 'main'
69-
uses: softprops/action-gh-release@v1
70-
with:
71-
files: out/*
72-
tag_name: continuous
67+
upload:
68+
name: Create release and upload artifacts
69+
runs-on: ubuntu-latest
70+
needs:
71+
- build
72+
steps:
73+
- name: Download artifacts
74+
uses: actions/download-artifact@v2
75+
- name: Inspect directory after downloading artifacts
76+
run: ls -alFR
77+
- name: Create release and upload artifacts
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
run: |
81+
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
82+
chmod +x pyuploadtool-x86_64.AppImage
83+
./pyuploadtool-x86_64.AppImage --appimage-extract-and-run artifacts/*

0 commit comments

Comments
 (0)