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

DP-1709 - Publish package to all ppas #343

Open
wants to merge 16 commits into
base: v2.1
Choose a base branch
from
Open

Conversation

mariana-dias-alves
Copy link
Contributor

@mariana-dias-alves mariana-dias-alves commented Jan 15, 2025

  • Publish package to new ppas

Tested in:


  • Make sure you are opening from a topic/feature/bugfix branch
  • Ensure that the PR title represents the desired changes
  • Ensure that the PR description detail the desired changes
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

env:
GITHUB_TOKEN: ${{ secrets.gh_token }}

- uses: DenverCoder1/doxygen-github-pages-action@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

with:
python-version: '3.10'
- uses: pre-commit/action@v2.0.3

Pack:
runs-on: ubuntu-20.04
Copy link
Contributor

Choose a reason for hiding this comment

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

why Pack does not depend on Pre-commit ?

Suggested change
runs-on: ubuntu-20.04
runs-on: ubuntu-20.04
needs: [Pre-commit]

runs-on: ubuntu-20.04
strategy:
matrix:
nexus_ppa: ["ppa-testing", "ppa-testing-focal", "ppa-testing-jammy", "ppa-testing-noble"]
Copy link
Contributor

Choose a reason for hiding this comment

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

better not to hardcode the repositories. other workflows use inputs:

testing_publish_repos:
    required: false
    type: string
    default: ["ppa-testing", "ppa-testing-focal", "ppa-testing-jammy", "ppa-testing-noble"]

runs-on: ubuntu-20.04
strategy:
matrix:
nexus_ppa: [ "ppa-main", "ppa-stable-focal", "ppa-stable-jammy", "ppa-stable-noble"]
Copy link
Contributor

Choose a reason for hiding this comment

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

same here: better not to hardcode the repositories. other workflows use inputs:

prod_publish_repos:
    required: false
    type: string
    default: [ "ppa-main", "ppa-stable-focal", "ppa-stable-jammy", "ppa-stable-noble"]

@@ -14,6 +14,14 @@ on:
required: false
type: string
default: "v2.0.10"
ref_name:
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this ref_name input ? please document

if: ${{ inputs.release == 'false' && inputs.deploy == 'true' }}
runs-on: ubuntu-20.04
strategy:
matrix:
Copy link
Contributor

Choose a reason for hiding this comment

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

avoid naming objects by their undelaying solution, prefer: artifact_repo_ppas instead of nexus_ppa

git config --global --add safe.directory $(pwd)
mkdir artifacts
cd artifacts
gh release download ${{ inputs.ref_name }} -p *.deb
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
gh release download ${{ inputs.ref_name }} -p *.deb
gh release download ${{ inputs.ref_name }} -p *.deb -d artifacts

no need to cd ;)

Copy link
Contributor

@AlexFernandes-MOVAI AlexFernandes-MOVAI left a comment

Choose a reason for hiding this comment

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

please address the comments

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