Skip to content

Commit

Permalink
Fix relase changelog in github actions config (#119)
Browse files Browse the repository at this point in the history
* test with separate jobs

* changelog

* runs-on

* undo draft

* undo changelog
  • Loading branch information
facundoolano authored Sep 8, 2021
1 parent aad2373 commit 207425e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,26 @@ on:
tags:
- "*.*.*"
jobs:
tests:
changelog:
runs-on: ubuntu-latest
steps:
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
shell: bash
- uses: actions/checkout@v2
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.tag_name.outputs.current_version }}
- name: Release body
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog_reader.outputs.changes }}

artifact:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -29,11 +48,6 @@ jobs:
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
shell: bash
- uses: actions/checkout@v2
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.tag_name.outputs.current_version }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -42,10 +56,9 @@ jobs:
- run: cargo build --release --target ${{ matrix.TARGET }}
- run: cp target/${{ matrix.TARGET }}/release/rpg-cli${{ matrix.EXTENSION }} rpg-cli-${{ steps.tag_name.outputs.current_version }}-${{ matrix.OS_NAME }}${{ matrix.EXTENSION }}

- name: Release
- name: Release files
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog_reader.outputs.changes }}
files: rpg-cli-${{ steps.tag_name.outputs.current_version }}-${{ matrix.OS_NAME }}${{ matrix.EXTENSION }}


Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Unreleased

### Fixed
* Don't reward items, gold or xp for cheap victories 6dc970a

Expand Down

0 comments on commit 207425e

Please sign in to comment.