Automatically draft a release on push
This commit is contained in:
parent
6a7f725c12
commit
14f9ac4ca7
23
.github/workflows/rust.yml
vendored
23
.github/workflows/rust.yml
vendored
@ -22,8 +22,23 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2.2.1
|
- name: Versions
|
||||||
name: Upload a Build Artifact
|
id: version
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=version::$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')"
|
||||||
|
echo "::set-output name=tag::${GITHUB_REF#refs/*/}"
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: libreddit
|
tag_name: ${{ steps.version.outputs.version }}
|
||||||
path: target/release/libreddit
|
name: ${{ steps.version.outputs.version }} - NAME
|
||||||
|
draft: true
|
||||||
|
files: target/release/libreddit
|
||||||
|
fail_on_unmatched_files: true
|
||||||
|
body: |
|
||||||
|
- CHANGES
|
||||||
|
|
||||||
|
See full list of changes [here](https://github.com/spikecodes/libreddit/compare/${{ steps.version.outputs.tag }}...${{ steps.version.outputs.version }}).
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user