summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2020-05-13 17:17:49 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2020-05-13 18:18:22 +0200
commit1fa15fd49a563237cb7baa70d43d05cf51f87897 (patch)
tree8afc3fe7bc48eb98f856f0584934bc16c7eae977 /.github
parente7f0db2941d8206ecbe236fccdf6245f031f9a48 (diff)
add a decent changelog plus automation
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cd.yml5
-rw-r--r--.github/workflows/changes.yml21
-rw-r--r--.github/workflows/ci.yml2
3 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 7cc2a83c..502c970d 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -48,10 +48,13 @@ jobs:
run: |
echo ::set-output name=sha::"$(shasum -a 256 ./release/gitui-mac.tar.gz | awk '{printf $1}')"
+ - name: Extract release notes
+ id: release_notes
+ uses: ffurrer2/extract-release-notes@v1
- name: Release
uses: softprops/action-gh-release@v1
with:
- #body: 'changelog '
+ body: ${{ steps.release_notes.outputs.release_notes }}
prerelease: true
files: |
./release/*.tar.gz
diff --git a/.github/workflows/changes.yml b/.github/workflows/changes.yml
new file mode 100644
index 00000000..c8dbe8c5
--- /dev/null
+++ b/.github/workflows/changes.yml
@@ -0,0 +1,21 @@
+name: changestest
+
+on:
+ push:
+ branches: [ '*' ]
+
+jobs:
+ log-test:
+ name: Changelog Test
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: Extract release notes
+ id: extract_release_notes
+ uses: ffurrer2/extract-release-notes@v1
+ with:
+ release_notes_file: ./release-notes.txt
+ - uses: actions/upload-artifact@v1
+ with:
+ name: release-notes
+ path: ./release-notes.txt
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a02593c2..1db7aa5f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -60,4 +60,4 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
- token: ${{ secrets.GITHUB_TOKEN }}
+ token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file