summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authornzbr <mail@nzbr.de>2022-03-24 20:53:45 +0100
committernzbr <mail@nzbr.de>2022-03-24 21:20:48 +0100
commit9f68a4f2f9f5988712e4daaf61b6df1097e110d2 (patch)
tree7f1856f5cacd34a3e799e1203e877a72af179a6e /.github
parent50d142943d56a962fd88139be31bbf2cec5fe907 (diff)
add release drafter
Diffstat (limited to '.github')
-rw-r--r--.github/release-drafter.yml15
-rw-r--r--.github/workflows/main.yml32
-rw-r--r--.github/workflows/release-drafter.yml19
3 files changed, 40 insertions, 26 deletions
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644
index 0000000..9f8acf4
--- /dev/null
+++ b/.github/release-drafter.yml
@@ -0,0 +1,15 @@
+change-template: "* $TITLE (#$NUMBER) @$AUTHOR"
+categories:
+ - title: '🚀 Features'
+ labels:
+ - enhancement
+ - title: "🛠️ Bugfixes"
+ labels:
+ - bug
+ - title: "📖 Documentation"
+ labels:
+ - documentation
+template: |
+ ## Changelog
+
+ $CHANGES
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f5e552c..abebc24 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,6 +1,6 @@
name: 'Build NixOS WSL tarball'
-on: [push, pull_request]
+on: [push, pull_request, release]
jobs:
build:
@@ -60,31 +60,11 @@ jobs:
with:
name: installer
- - name: Create Release
- id: create_release
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- draft: true
- tag_name: ${{ github.ref }}
-
- - name: Upload tarball as release asset
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Attach to release
+ uses: softprops/action-gh-release@v1
with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_name: nixos-wsl-x86_64-linux.tar.gz
- asset_path: result/tarball/nixos-wsl-x86_64-linux.tar.gz
- asset_content_type: application/gzip
-
- - name: Upload installer as release asset
- uses: actions/upload-release-asset@v1
+ files: |
+ nixos-wsl-x86_64-linux.tar.gz
+ nixos-wsl-installer.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_name: nixos-wsl-installer.tar.gz
- asset_path: result/tarball/nixos-wsl-installer.tar.gz
- asset_content_type: application/gzip
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
new file mode 100644
index 0000000..cade7c0
--- /dev/null
+++ b/.github/workflows/release-drafter.yml
@@ -0,0 +1,19 @@
+name: Release Drafter
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ types:
+ - opened
+ - reopened
+ - synchronize
+ -
+jobs:
+ update_release_draft:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: release-drafter/release-drafter@v5
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}