Skip to content

Commit

Permalink
Merge pull request #416 from pSchlarb/GHARefactoring
Browse files Browse the repository at this point in the history
Publish via GHA & gated status checks
  • Loading branch information
WadeBarnes authored Jul 5, 2022
2 parents 66982af + a55dad0 commit df2c287
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
- Devcontainers
- GHARefactoring
paths:
- '**.py'
- '.github/**'
- '**'
- '!sovtokenfees/sovtokenfees/metadata.json'
- '!sovtoken/sovtoken/metadata.json'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -42,7 +43,6 @@ jobs:
testsNeeded:
- '**.py'
- '.github/**'
lint:
name: Lint
needs: [workflow-setup]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ jobs:
with:
GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
REPO_COMPONENT: 'rc'
secrets:
BOT_PR_PAT: ${{ secrets.BOT_PR_PAT }}
1 change: 1 addition & 0 deletions .github/workflows/publishRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ jobs:
with:
GITHUB_REPOSITORY_NAME: ${{ needs.release-infos.outputs.GITHUB_REPOSITORY_NAME }}
UBUNTU_VERSION: ${{ needs.release-infos.outputs.UBUNTU_VERSION }}
REPO_COMPONENT: ${{ needs.release-infos.outputs.component}}
secrets:
BOT_PR_PAT: ${{ secrets.BOT_PR_PAT }}
8 changes: 5 additions & 3 deletions .github/workflows/reuseable_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
UBUNTU_VERSION:
required: true
type: string
REPO_COMPONENT:
required: true
type: string
secrets:
BOT_PR_PAT:
required: true
Expand All @@ -27,6 +30,7 @@ jobs:
- name: Clone Sovrin Packaging Repo
uses: actions/checkout@v3
with:
repository: sovrin-foundation/sovrin-packaging
path: sovrin-packaging
token: ${{ secrets.BOT_PR_PAT }}
- name: Test cloned sovrin packaging
Expand All @@ -43,6 +47,4 @@ jobs:
path: /tmp/tokendebs/
- name: Publish Packages
run: |
ls -lisha
echo "Todo Packages with upload_debs.py and secrets"
echo "Something like: ./upload_debs.py /tmp/tokendebs {$repoName} {$repoComponent} --host {$secrets.SOVRIN_REPO_HOST} --ssh-key {$secrets.sovrin_key}"
./sovrin-packaging/upload_debs.py /tmp/tokendebs core ${{ inputs.REPO_COMPONENT }} --host repo.sovrin.org --ssh-key ${{ secrets.SOVRIN_REPO_KEY }}"

0 comments on commit df2c287

Please sign in to comment.