mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Update release.yml
This commit is contained in:
committed by
GitHub
parent
96fac9c56e
commit
5489a7c502
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
@@ -1,30 +1,16 @@
|
||||
name: Release Drafter
|
||||
|
||||
name: Core Release
|
||||
on:
|
||||
push:
|
||||
# branches to consider in the event; optional, defaults to all
|
||||
branches:
|
||||
- master
|
||||
# pull_request event is required only for autolabeler
|
||||
pull_request:
|
||||
# Only following types are handled by the action, but one can default to all as well
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
create:
|
||||
jobs:
|
||||
update_release_draft:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# (Optional) GitHub Enterprise requires GHE_HOST variable set
|
||||
#- name: Set GHE_HOST
|
||||
# run: |
|
||||
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
|
||||
|
||||
# Drafts your next Release notes as Pull Requests are merged into "master"
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
|
||||
# with:
|
||||
# config-name: my-config.yml
|
||||
# disable-autolabeler: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create a release draft for a version tag
|
||||
id: create-release-draft
|
||||
uses: ecampidoglio/auto-release-draft@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Print the URL of the release draft
|
||||
if: steps.create-release-draft.outputs.release-url != ''
|
||||
run: echo ${{ steps.create-release-draft.outputs.release-url }}
|
||||
|
||||
Reference in New Issue
Block a user