Skip to content

Commit

Permalink
build: Publish with craft (#275)
Browse files Browse the repository at this point in the history
Prepares for publishing the SDK with craft to GitHub, the release
registry, and our artifact store.
  • Loading branch information
jan-auer authored Jun 5, 2020
1 parent ee63af7 commit dd6ec0c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
minVersion: "0.9.6"
github:
owner: getsentry
repo: sentry-native
changelogPolicy: simple

statusProvider:
name: github
artifactProvider:
name: zeus

targets:
- name: github
- name: registry
type: sdk
config:
canonical: "github:getsentry/sentry-native"
- name: gcs
bucket: sentry-sdk-assets
paths:
- path: /sentry-native/{{version}}/
metadata:
cacheControl: "public, max-age=2592000"
- path: /sentry-native/latest/
metadata:
cacheControl: "public, max-age=600"

requireNames:
- /^sentry-native.zip$/
5 changes: 5 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,8 @@ stages:
displayName: Publish source archive to Azure
inputs:
pathtoPublish: "$(Build.ArtifactStagingDirectory)/sentry-native-source.zip"
- script: |
npx -p "@zeus-ci/cli" zeus job update --build $(Build.BuildId) --job $(System.JobId) --ref $(Build.SourceVersion) --build-label "$(Build.BuildNumber)" --job-label "$(System.JobDisplayName)" --status passed
npx -p "@zeus-ci/cli" zeus upload --build $(Build.BuildId) --job $(System.JobId) --type "application/zip" --name "sentry-native.zip" "$(Build.ArtifactStagingDirectory)/sentry-native-source.zip"
env:
ZEUS_HOOK_BASE: $(ZEUS_HOOK_BASE)

0 comments on commit dd6ec0c

Please sign in to comment.