Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Gellis 094778466d Use different checkout action
Release New Version / Release (push) Failing after 27m32s Details
2024-12-16 19:56:28 -05:00
Simon Gellis 3dc7c833e8 Fix reference
Release New Version / Release (push) Failing after 6s Details
2024-12-16 19:38:35 -05:00
Simon Gellis e23bdb73fd Add a release action
Release New Version / Release (push) Failing after 19s Details
2024-12-15 23:46:08 -05:00
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
name: Release New Version
run-name: ${{ gitea.actor }} is releasing a new version
on: [push]
jobs:
Release:
runs-on: lemur-build
steps:
- name: Check out repository code
uses: taiki-e/checkout-action@v1
- name: Prepare artifacts dir
run: mkdir -p /artifacts
- name: Build for Linux
run: |
cargo build --release
cp target/release/lemur /artifacts/lemur-linux
- name: Bundle for Linux
run: |
cargo bundle --release --format deb
cp target/release/bundle/deb/*.deb /artifacts
- name: Build for Windows
run: |
cargo build --release --target x86_64-pc-windows-msvc
cp target/x86_64-pc-windows-msvc/release/lemur.exe /artifacts
- name: Bundle for Windows
run: |
cargo bundle --release --target x86_64-pc-windows-msvc --format msi
cp target/x86_64-pc-windows-msvc/release/bundle/msi/Lemur.msi /artifacts
- name: Build for MacOS
run: |
cargo build --release --target x86_64-apple-darwin
cp target/x86_64-apple-darwin/release/lemur /artifacts/lemur-osx
- name: Bundle for MacOS
run: |
cargo bundle --release --target x86_64-apple-darwin --format osx
genisoimage -V lemur -D -R -apple -no-pad -o /artifacts/Lemur.dmg target/x86_64-apple-darwin/release/bundle/osx/Lemur.app
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
/artifacts/**
api-key: '${{secrets.RELEASE_TOKEN}}'