mirror of
https://github.com/stakater/Reloader.git
synced 2026-04-22 09:56:37 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
|
|
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
|
|
|
|
- name: Create Release
|
|
id: create_release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ github.ref }}
|
|
release_name: Release ${{ github.ref }}
|
|
# body:
|
|
draft: false
|
|
prerelease: false
|
|
|
|
- name: Notify Slack
|
|
uses: 8398a7/action-slack@v3
|
|
if: always() # Pick up events even if the job fails or is canceled.
|
|
with:
|
|
status: ${{ job.status }}
|
|
fields: repo,author,action,eventName,ref,workflow
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
|
|
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
|