24 lines
779 B
YAML
24 lines
779 B
YAML
name: Make GitHub Release on Tag
|
|
on:
|
|
push:
|
|
tags:
|
|
- '2.[0-9][0-9][0-9][0-9][0-9][0-9]'
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Get the Tag
|
|
id: get_tag
|
|
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
|
|
- name: Netdisco Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
run: |
|
|
curl -sL -X POST -H "Content-Type: application/json" \
|
|
-u "$GITHUB_TOKEN" \
|
|
--data "{\"tag_name\": \"${{ steps.get_tag.outputs.TAGVALUE }}\", \
|
|
\"target_commitish\": \"master\", \
|
|
\"name\": \"Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}\"}" \
|
|
https://api.github.com/repos/netdisco/netdisco/releases
|