Skip to content

Merge pull request #348 from tangem/release_3.9.0 #27

Merge pull request #348 from tangem/release_3.9.0

Merge pull request #348 from tangem/release_3.9.0 #27

name: (A) Publish Release
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
merges:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Prepare variables
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Create a release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
commitish: master
body_path: CHANGELOG
draft: false
prerelease: false
- name: Create Pull request to master
uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
head: "master",
base: "develop",
title: "Update develop branch with master after release",
});