-
Notifications
You must be signed in to change notification settings - Fork 101
31 lines (26 loc) · 1.03 KB
/
draft-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is a basic workflow to help you get started with Actions
name: Draft release
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
tags: "[0-9]+.[0-9]+.[0-9]+\\+bedrock-[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Parse version information
id: version-info
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo ::set-output name=LIB_VERSION::$(echo $VERSION | cut -d '+' -f1)
echo ::set-output name=MC_VERSION::$(echo $VERSION | cut -d '-' -f2)
echo ::set-output name=TAG::$VERSION
- name: Create draft release
uses: ncipollo/[email protected]
with:
commit: ${{ github.sha }}
draft: true
name: ${{ steps.version-info.outputs.LIB_VERSION }} for Minecraft Bedrock ${{ steps.version-info.outputs.MC_VERSION }}
tag: ${{ steps.version-info.outputs.TAG }}
token: ${{ secrets.GITHUB_TOKEN }}