Skip to content

Merge branch 'develop' of github.com:EdgelessPE/ept into develop #24

Merge branch 'develop' of github.com:EdgelessPE/ept into develop

Merge branch 'develop' of github.com:EdgelessPE/ept into develop #24

Workflow file for this run

name: Build release
on:
push:
tags:
- 'v*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: npm i pnpm@9 --global && pnpm install
- name: Run build
id: build
run: npm run rs:release
- name: Create zip
run: |
copy target/release/ept.exe ept.exe
7z a ept-${{ steps.build.outputs.version }}-windows-x64.zip ept.exe
- name: Generate a changelog
run: node_modules/git-cliff-windows-x64/bin/git-cliff.exe -s all --current -o CURRENT_CHANGELOG.md
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: CURRENT_CHANGELOG.md
files: ept-${{ steps.build.outputs.version }}-windows-x64.zip