mirror of
https://github.com/pmmp/BedrockProtocol.git
synced 2025-03-01 02:21:12 +00:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
# 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/release-action@v1.15.0
|
|
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 }}
|