Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
feat: upload flatpak build to s3
Minh141120911bd880cf85
diff --git a/.github/workflows/template-tauri-build-linux-x64-flatpak.yml b/.github/workflows/template-tauri-build-linux-x64-flatpak.ymlindex f4a9b6cae..676a696b6 100644--- a/.github/workflows/template-tauri-build-linux-x64-flatpak.yml+++ b/.github/workflows/template-tauri-build-linux-x64-flatpak.yml@@ -183,3 +183,40 @@ jobs:with:name: jan-linux-amd64-flatpak-${{ inputs.new_version }}-AppImagepath: ./src-tauri/target/release/bundle/appimage/*.AppImage++ ## Set output filename for linux+ - name: Set output filename for linux+ id: packageinfo+ run: |+ cd ./src-tauri/target/release/bundle++ if [ "${{ inputs.channel }}" != "stable" ]; then+ DEB_FILE_NAME=Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64.deb+ APPIMAGE_FILE_NAME=Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64.AppImage+ DEB_SIG=$(cat deb/Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64.deb.sig)+ APPIMAGE_SIG=$(cat appimage/Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64.AppImage.sig)+ else+ DEB_FILE_NAME=Jan_${{ inputs.new_version }}_amd64.deb+ APPIMAGE_FILE_NAME=Jan_${{ inputs.new_version }}_amd64.AppImage+ DEB_SIG=$(cat deb/Jan_${{ inputs.new_version }}_amd64.deb.sig)+ APPIMAGE_SIG=$(cat appimage/Jan_${{ inputs.new_version }}_amd64.AppImage.sig)+ fi++ echo "DEB_SIG=$DEB_SIG" >> $GITHUB_OUTPUT+ echo "APPIMAGE_SIG=$APPIMAGE_SIG" >> $GITHUB_OUTPUT+ echo "DEB_FILE_NAME=$DEB_FILE_NAME" >> $GITHUB_OUTPUT+ echo "APPIMAGE_FILE_NAME=$APPIMAGE_FILE_NAME" >> $GITHUB_OUTPUT++ - name: upload to aws s3 if public provider is aws+ if: inputs.public_provider == 'aws-s3'+ run: |+ cd ./src-tauri/target/release/bundle++ # Upload for tauri updater+ aws s3 cp ./deb/Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64.deb s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/flatpak/Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64-flatpak.deb+ aws s3 cp ./deb/Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64.deb.sig s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/flatpak/Jan-${{ inputs.channel }}_${{ inputs.new_version }}_amd64-flatpak.deb.sig+ env:+ AWS_ACCESS_KEY_ID: ${{ secrets.DELTA_AWS_ACCESS_KEY_ID }}+ AWS_SECRET_ACCESS_KEY: ${{ secrets.DELTA_AWS_SECRET_ACCESS_KEY }}+ AWS_DEFAULT_REGION: ${{ secrets.DELTA_AWS_REGION }}+ AWS_EC2_METADATA_DISABLED: 'true'\ No newline at end of file