mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Rename latest
release to preview
The latest release should refer to the latest non-pre release. What we are doing here is actually publishing a preview release. Fixes #281.
This commit is contained in:
parent
5cb25edea0
commit
3e6e746852
@ -1,4 +1,4 @@
|
||||
name: "Create 'latest' release"
|
||||
name: "Create 'preview' release"
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -7,26 +7,26 @@ on:
|
||||
|
||||
jobs:
|
||||
create_release:
|
||||
name: Create latest release
|
||||
name: Create preview release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Delete 'latest' release
|
||||
- name: Delete 'preview' release
|
||||
uses: larryjoelane/delete-release-action@v1.0.24
|
||||
with:
|
||||
release-name: latest
|
||||
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 'latest' release
|
||||
- name: Create 'preview' release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: latest
|
||||
release_name: latest
|
||||
tag_name: preview
|
||||
release_name: preview
|
||||
draft: false
|
||||
prerelease: true
|
Loading…
Reference in New Issue
Block a user