mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-20 21:34:29 -05:00
851086c5a2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.7...v4.2.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: "Create 'preview' release"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
create_release:
|
|
name: Create preview release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.2.1
|
|
|
|
- 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: Extract changelog section for release
|
|
id: changelog
|
|
uses: coditory/changelog-parser@v1
|
|
with:
|
|
version: unreleased
|
|
|
|
- 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: ${{ steps.changelog.outputs.description }}
|