Skip to content

Commit

Permalink
release upload
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Dec 31, 2024
1 parent c784af8 commit 8d56acc
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
################################################################################################

build-appimage:
name: appimage on alpine
name: AppImage on alpine
runs-on: ubuntu-22.04
needs: [update-nightly-tag]
strategy:
Expand All @@ -235,13 +235,51 @@ jobs:
run: sudo apt-get install -y docker-compose
- name: Run build
run: docker-compose run --rm -e GITHUB_REPOSITORY=$GITHUB_REPOSITORY -e GITHUB_REF=$GITHUB_REF alpine-appimage ./appimage/build.sh --src-dir /qtox
- name: Upload appimage
- name: Upload AppImage
uses: actions/upload-artifact@v4
with:
name: qTox-${{ github.sha }}-x86_64-AppImage
path: |
qTox-*.AppImage
qTox-*.AppImage.zsync
- name: Get tag name for AppImage release file name
if: contains(github.ref, 'refs/tags/v')
id: get_version
run: |
VERSION="$(echo $GITHUB_REF | cut -d / -f 3)"
echo "release_appimage=qTox-$VERSION.x86_64.AppImage" >>$GITHUB_OUTPUT
- name: Rename AppImage for release upload
if: contains(github.ref, 'refs/tags/v')
run: |
cp qTox-*.x86_64.AppImage "${{ steps.get_version.outputs.release_appimage }}"
sha256sum "${{ steps.get_version.outputs.release_appimage }}" > "${{ steps.get_version.outputs.release_appimage }}.sha256"
cp qTox-*.x86_64.AppImage.zsync "${{ steps.get_version.outputs.release_appimage }}.zsync"
- name: Upload to versioned release
if: contains(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "${{ steps.get_version.outputs.release_appimage }},${{ steps.get_version.outputs.release_appimage }}.sha256,${{ steps.get_version.outputs.release_appimage }}.zsync"
- name: Rename AppImage for nightly upload
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
cp qTox-*.x86_64.AppImage qTox-nightly.x86_64.AppImage
sha256sum qTox-nightly.x86_64.AppImage > qTox-nightly.x86_64.AppImage.sha256
cp qTox-*.x86_64.AppImage.zsync qTox-nightly.x86_64.AppImage.zsync
- name: Upload to nightly release
uses: ncipollo/release-action@v1
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
allowUpdates: true
tag: nightly
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
prerelease: true
replacesArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "qTox-nightly.AppImage,qTox-nightly.AppImage.sha256,qTox-nightly.AppImage.zsync"

build-android:
name: Android
Expand Down

0 comments on commit 8d56acc

Please sign in to comment.