From 207425ebd9400c83ce3cfa495b04b659d30befee Mon Sep 17 00:00:00 2001 From: Facundo Olano Date: Tue, 7 Sep 2021 23:16:55 -0300 Subject: [PATCH] Fix relase changelog in github actions config (#119) * test with separate jobs * changelog * runs-on * undo draft * undo changelog --- .github/workflows/release.yml | 29 +++++++++++++++++++++-------- CHANGELOG.md | 1 + 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce08a670..6cf38ee4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 @@ -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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index aa880bfb..d079e0c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Unreleased + ### Fixed * Don't reward items, gold or xp for cheap victories 6dc970a