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

Update Artifact Signing #4117

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,30 @@ on:
configuration:
type: string
default: Debug
outputs:
repack-artifact-id:
description: "Artifact ID of the repack"
value: ${{ jobs.build.outputs.repack-artifact-id }}

jobs:
build:
runs-on: ubuntu-latest
outputs:
repack-artifact-id: ${{ steps.upload-repack-artifact.outputs.artifact-id }}
steps:
- uses: actions/checkout@v4
- name: Restore cache for _build/tools
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build/tools
key: build-tools-${{ hashFiles('build', 'build.ps1', 'build.cake') }}
- name: Restore cache for _build/cake
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build/cake
key: build-cake-${{ hashFiles('build.cake') }}
- name: Restore cache for _build/lib/nuget
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
_build/lib/nuget
Expand All @@ -32,6 +38,7 @@ jobs:
- name: Build ckan.exe and netkan.exe
run: ./build --configuration=${{ inputs.configuration }}
- name: Upload repack artifact
id: upload-repack-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.configuration }}-repack-unsigned
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
outputs:
artifact-url: ${{steps.sign.outputs.signing-request-id }}
steps:
- uses: signpath/github-action-submit-signing-request@v0.3
- uses: signpath/github-action-submit-signing-request@v0.4
id: sign
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: 0cd9fc3f-b78d-4214-b152-b2e93c952e14
project-slug: CKAN
signing-policy-slug: test-signing
github-artifact-name: Release-repack-unsigned
github-artifact-id: ${{ needs.smoke-inflator.outputs.repack-artifact-id }}
artifact-configuration-slug: release
wait-for-completion: true

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- synchronize
- reopened
workflow_call:
outputs:
repack-artifact-id:
description: "Artifact ID of the repack"
value: ${{ jobs.build-release.outputs.repack-artifact-id }}

jobs:
build-release:
Expand Down