You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
805 B
YAML
33 lines
805 B
YAML
4 years ago
|
name: "Create 'preview' release"
|
||
4 years ago
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
create_release:
|
||
4 years ago
|
name: Create preview release
|
||
4 years ago
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
4 years ago
|
- name: Delete 'preview' release
|
||
4 years ago
|
uses: larryjoelane/delete-release-action@v1.0.24
|
||
|
with:
|
||
4 years ago
|
release-name: preview
|
||
4 years ago
|
token: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
||
|
|
||
4 years ago
|
- name: Give GitHub some time to process the deletion, otherwise our release shows up as draft. Sigh.
|
||
|
run: sleep 10
|
||
|
|
||
4 years ago
|
- name: Create 'preview' release
|
||
4 years ago
|
uses: actions/create-release@v1
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
||
|
with:
|
||
4 years ago
|
tag_name: preview
|
||
|
release_name: preview
|
||
4 years ago
|
draft: false
|
||
|
prerelease: true
|