Skip to content

Bump to 0.4.0

Bump to 0.4.0 #4

Workflow file for this run

name: Release Fedra
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Install CMake, Ninja, and Pandoc
run: |
choco install cmake ninja pandoc minisign -y
- name: Clone wxWidgets
run: git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git
- name: Build
run: |
$env:WXWIDGETS_DIR = "${{ github.workspace }}\wxWidgets"
cargo release
- name: Sign artifacts
shell: pwsh
env:
MINISIGN_KEY: ${{ secrets.MINISIGN_KEY }}
MINISIGN_PASSWORD: ${{ secrets.MINISIGN_PASSWORD }}
run: |
$keyPath = Join-Path $env:RUNNER_TEMP "fedra.key"
[IO.File]::WriteAllText($keyPath, $env:MINISIGN_KEY)
$pwPath = Join-Path $env:RUNNER_TEMP "fedra.pw"
[IO.File]::WriteAllText($pwPath, $env:MINISIGN_PASSWORD)
Get-Content $pwPath | minisign -S -s $keyPath -m target/release/fedra_setup.exe
Get-Content $pwPath | minisign -S -s $keyPath -m target/release/fedra.zip
Remove-Item $keyPath, $pwPath
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: fedra-release-${{ github.ref_name }}
path: |
target/release/fedra.zip
target/release/fedra.zip.minisig
target/release/fedra_setup.exe
target/release/fedra_setup.exe.minisig
retention-days: 90
- name: Get previous tag
id: prev_tag
shell: bash
run: |
PREV=$(git tag --sort=-version:refname | grep -v "^${{ github.ref_name }}$" | head -n 1 || echo "")
echo "tag=$PREV" >> $GITHUB_OUTPUT
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: |
target/release/fedra.zip
target/release/fedra.zip.minisig
target/release/fedra_setup.exe
target/release/fedra_setup.exe.minisig
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}