mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
75cec57e9d
If we immediately chain the two actions, `create-release` only creates a draft for some reason.
33 lines
798 B
YAML
33 lines
798 B
YAML
name: "Create 'latest' release"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
create_release:
|
|
name: Create latest release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Delete 'latest' release
|
|
uses: larryjoelane/delete-release-action@v1.0.24
|
|
with:
|
|
release-name: latest
|
|
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
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: latest
|
|
release_name: latest
|
|
draft: false
|
|
prerelease: true
|