Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action for manual releases #379

Closed
Feichtmeier opened this issue Dec 21, 2023 · 8 comments
Closed

GitHub Action for manual releases #379

Feichtmeier opened this issue Dec 21, 2023 · 8 comments
Assignees

Comments

@Feichtmeier
Copy link
Member

Feichtmeier commented Dec 21, 2023

@eboye hey I am taking another look and I would really like to have a githubaction to build the appimages for people who prefer manual downloads over store downloads

I am trying a github action but with the appimage-buidler action I miss some "app image receipe"

name: release linux appimage

on:
  push:
    branches:
      - main  


env:
  FLUTTER_VERSION: '3.16.x'

jobs:
  build_and_publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: subosito/flutter-action@v2
        with:
          channel: 'stable'
          flutter-version: ${{env.FLUTTER_VERSION}}
      - run: sudo apt update
      - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libmpv-dev
      - run: flutter pub get
      - uses: AppImageCrafters/build-appimage@master
        with:
          recipe: "./appimage-demo-qt5/AppImageBuilder.yml"
        env:
          UPDATE_INFO: gh-releases-zsync|AppImageCrafters|appimage-demo-qt5|latest|*x86_64.AppImage.zsync

Can your bash script be used to create such a receipe?

Originally posted by @Feichtmeier in #257 (comment)

@eboye
Copy link
Contributor

eboye commented Dec 24, 2023

Sorry, I've posted with my corporate account :D

I can look into it

In the meantime, I think this could be the solution

https://github.com/AppImageCrafters/appimage-builder-flutter-example/blob/main/AppImageBuilder.yml#L4-L7

Those few lines are what the shell script should be implemented (changed).

Here's the PR

#393

@eboye
Copy link
Contributor

eboye commented Dec 24, 2023

And btw, I think it should be hooked to releases which there is none in this repo.

@Feichtmeier
Copy link
Member Author

Hey 👋
The action works but it after the ran the app image is gone
Any idea how to connect this action to the releases?

@eboye
Copy link
Contributor

eboye commented Feb 26, 2024

name: AppImage Release

on:
  push:
    branches: [ main ]

env:
  FLUTTER_VERSION: '3.16.x'

jobs:
  build-appimage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: subosito/flutter-action@v2
        with:
          channel: 'stable'
          flutter-version: ${{env.FLUTTER_VERSION}}
      - run: sudo apt update
      - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libmpv-dev
      - run: flutter --disable-analytics
      - run: flutter pub get
      - run: flutter build linux --release
      - uses: AppImageCrafters/build-appimage@master
        with:
          recipe: "./AppImageBuilder.yml"
        env:
          UPLOAD_INFO: gh-releases-v2|ubuntu-flutter-community|musicpod|latest|*x86_64.AppImage
      - name: Create GitHub Release
        uses: appleboy/github-release@master
        with:
          tag_name: '${{ github.ref_name }}'
          token: ${{ secrets.GITHUB_TOKEN }}

I think these last 5 lines should do the trick. I think I made I typo for UPDATE_INFO in the first and UPLOAD_INFO should be correct.

You can try this, but I'll check it out when I get some spare time. This is out of head (and some other actions I've made).

@Feichtmeier
Copy link
Member Author

appleboy/github-release@master

Thanks :)

appleboy/github-release@master
doesnt exist any more
but there are a bunch others we could try

elgohr/Github-Release-Action
marvinpinto/action-automatic-releases
softprops/action-gh-release
ncipollo/release-action

@Feichtmeier Feichtmeier changed the title AppImage GitHub Action GitHub Action for manual releases Mar 17, 2024
@Feichtmeier
Copy link
Member Author

appleboy/github-release@master

Thanks :)

appleboy/github-release@master doesnt exist any more but there are a bunch others we could try

elgohr/Github-Release-Action marvinpinto/action-automatic-releases softprops/action-gh-release ncipollo/release-action

This can be used for all releases in the future that are not snap

  • appimage
  • dmg
  • exe

@Feichtmeier Feichtmeier self-assigned this Mar 17, 2024
@Feichtmeier Feichtmeier pinned this issue Mar 17, 2024
@Feichtmeier Feichtmeier unpinned this issue Jul 31, 2024
@Feichtmeier
Copy link
Member Author

@eboye managed to create a good release cycle via bots now with release please and creating macos artifacts then

for the snap it always worked

but for the appimage I managed to attach it to the release action however it fails at some point and/or the appimag is not attached to the release
maybe if you find time would be cool if you could take a look, in the end you are the only one here using the app image : D

@Feichtmeier
Copy link
Member Author

macos is trhere, for windows I will go for the msix approach #964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants