forked from shunyeka/jQuery-QueryBuilder-Python-Evaluator
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 906 Bytes
/
cd.yaml
File metadata and controls
35 lines (30 loc) · 906 Bytes
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
32
33
34
35
name: Continuous Delivery
on:
create:
tags:
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
draft: true
prerelease: false
# Slack Notification
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: releases
SLACK_MESSAGE: |-
A new release is ready to be published
${{ steps.create_release.outputs.html_url }}
SLACK_TITLE: New Release ${{ github.ref_name }}
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASES_WEBHOOK_URL }}