From c0b99bc7226ecfa3f00f1aed7ae10a2939662e4d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 15 Aug 2022 13:44:03 +0200 Subject: [PATCH] release scripts --- .craft.yml | 15 +++++++++++++++ .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .craft.yml create mode 100644 .github/workflows/release.yml diff --git a/.craft.yml b/.craft.yml new file mode 100644 index 00000000..1017c4f7 --- /dev/null +++ b/.craft.yml @@ -0,0 +1,15 @@ +minVersion: 0.24.0 +changelogPolicy: auto +targets: + # - name: symbol-collector + # includeNames: /libsentry(-android)?\.so/ + # batchType: android + # bundleIdPrefix: sentry-unity-android-ndk- + - name: upm + releaseRepoOwner: getsentry + releaseRepoName: unreal + - name: github + excludeNames: /^libsentry.*\.so$/ + - name: registry + sdks: + upm:sentry-unreal: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..434c8d58 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +on: + workflow_dispatch: + inputs: + version: + description: Version to release + required: true + force: + description: Force a release even when there are release-blockers (optional) + required: false + +jobs: + job_release: + runs-on: ubuntu-latest + name: 'Release a new version: ${{ github.event.inputs.version }}' + steps: + - name: Check out current commit (${{ github.sha }}) + uses: actions/checkout@v2 + with: + token: ${{ secrets.GH_RELEASE_PAT }} + fetch-depth: 0 + + - name: Prepare release ${{ github.event.inputs.version }} + uses: getsentry/action-prepare-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} + with: + version: ${{ github.event.inputs.version }} + force: ${{ github.event.inputs.force }}