2
0

build(gha): Add Craft releases as a GitHub action (#538)

This commit is contained in:
Burak Yigit Kaya 2020-06-14 17:27:41 +03:00 committed by GitHub
parent 677e753c18
commit af502d0ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 0 deletions

11
.craft.yml Normal file
View File

@ -0,0 +1,11 @@
minVersion: "0.10.0"
github:
owner: getsentry
repo: onpremise
changelogPolicy: none
artifactProvider:
name: none
statusProvider:
name: github
targets:
- name: github

14
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,14 @@
on:
repository_dispatch:
types: [release]
jobs:
release:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- uses: actions/checkout@v2
- uses: getsentry/craft-action
with:
action: prepare
version: ${{ github.event.client_payload.version }}
dry_run: ${{ github.event.client_payload.dry_run }}

11
scripts/bump-version.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -eux
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR/..
OLD_VERSION="$1"
NEW_VERSION="$2"
VERSION=$2
echo "New version: $VERSION"