Setup release CI #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |