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

CI: Add Fedora builds (#144) #148

Merged
merged 1 commit into from
Jul 23, 2022
Merged

Conversation

lexa
Copy link
Contributor

@lexa lexa commented Jul 20, 2022

Add Github actions for building SwayNotificationCenter on every push and publish it on Copr when it is released.

fedora-build.yml builds the package locally on every commit and PR. It is mostly to check that the build is not broken and there is not missing dependencies.

fedora-copr.yml is triggered when SwayNotificationCenter is released. It will start build on the copr. Copr will build the project for different Fedora versions and architectures (x86, arm64, etc).

To make fedora-copr.yml work you need to :

  1. Get an account on the copr
  2. Create a new project there, lets call it SwayNotificationCenter
  3. Set repo secret COPR_REPO_NAME to SwayNotificationCenter (same as project name on Copr)
  4. Get a token from https://copr.fedorainfracloud.org/api/ and set it in the repo's secrets as 'COPR_API_TOKEN'.

After that, copr shoud be updated when the next release is done.

I see that you don't want to use Github releases, feel free to change trigger event of fedora-copr.yml to


on:  
  push:
    tags:
      - '*'

@ErikReider
Copy link
Owner

Cool! Thanks :)

Copy link
Owner

@ErikReider ErikReider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ErikReider ErikReider merged commit fdaa251 into ErikReider:main Jul 23, 2022
@ErikReider
Copy link
Owner

Oh. Forgot about updating the README. I'll fix it :)

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

Successfully merging this pull request may close these issues.

2 participants