You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
607 B
24 lines
607 B
name: "Create 'preview' release"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
create_release:
|
|
name: Create preview release
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.ITCHY_GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- name: Update 'preview' release
|
|
run: |
|
|
# First delete release + tag, ignore failures
|
|
gh release delete preview || true
|
|
sleep 5
|
|
gh api -X DELETE /repos/{owner}/{repo}/git/refs/tags/preview || true
|
|
sleep 5
|
|
gh release create preview --prerelease --title preview
|
|
|