mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
1b8f807288
By default, GitHub uses the last commit message as the body text. This can be a lot of text if the last commit was from dependabot. Make the preview release more pleasant to look at by adding a dedicated body.
34 lines
857 B
YAML
34 lines
857 B
YAML
name: "Create 'preview' release"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
create_release:
|
|
name: Create preview release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Delete 'preview' release
|
|
uses: larryjoelane/delete-release-action@v1.0.24
|
|
with:
|
|
release-name: preview
|
|
token: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
|
|
|
- name: Give GitHub some time to process the deletion, otherwise our release shows up as draft. Sigh.
|
|
run: sleep 10
|
|
|
|
- name: Create 'preview' release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: preview
|
|
release_name: preview
|
|
draft: false
|
|
prerelease: true
|
|
body: Preview release of `asb` and `swap`
|