Skip to content

Commit

Permalink
Setup release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bezbac committed Nov 10, 2024
1 parent a503275 commit cdbf7e1
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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

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@v4
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
2 changes: 2 additions & 0 deletions zellij-tabula.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export ZELLIJ_TABULA_ZSH_PLUGIN_VERSION="0.1.0"

chpwd() {
if [[ -n $ZELLIJ ]]; then
zellij pipe --name tabula -- "'$ZELLIJ_PANE_ID' '$PWD'"
Expand Down

0 comments on commit cdbf7e1

Please sign in to comment.