-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.46 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
# Push events to any matching semantic version tag.
# For example, 1.10.1 or 2.0.0 or 3.0.0-alpha.
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install rust toolchain
uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
targets: wasm32-wasi
- name: Build
run: cargo build --release
working-directory: ./zellij
- name: Build changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
configuration: "release-changelog-builder-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: Release ${{ steps.get_version.outputs.VERSION }}
body: ${{steps.changelog.outputs.changelog}}
draft: false
prerelease: false
files: |
zellij/target/wasm32-wasi/release/zellij-tabula.wasm
zellij-tabula.plugin.zsh