Skip to content

.github/workflows/release.yml #31

.github/workflows/release.yml

.github/workflows/release.yml #31

Workflow file for this run

on:
release:
types: [ created ]
jobs:
release:
runs-on: [self-hosted, ubuntu]
steps:
- uses: actions/checkout@v3
- name: nightly-rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Build rust package
run: cargo build --release --verbose
- name: Build Flatpak
run: |
cd flatpak
python3 flatpak-generator.py ../Cargo.lock -o cargo-sources.json
flatpak-builder build org.Xetibo.ReSet.json --force-clean
flatpak build-export export build
flatpak build-bundle export reset.flatpak org.Xetibo.ReSet
- name: Build Ubuntu package
run: |
cp ./target/release/reset ./debian/.
dpkg-deb --build debian
mv debian.deb reset.deb
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/reset
flatpak/reset.flatpak
reset.deb