Skip to content

Commit

Permalink
added release
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed May 29, 2023
1 parent 4a7dd05 commit 6463504
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
release:
types: [created]

jobs:
release-ubuntu:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: olegtarasov/[email protected]
id: tagName

- name: Update Packages
shell: bash
run: sudo apt-get -yq update

- name: Install Build Dependencies
run: sudo apt-get install -yq libgtk-3-dev

- name: Use Rust Stable
run: rustup toolchain install stable --profile minimal

- uses: Swatinem/rust-cache@v2

- name: Install cargo-deb
run: cargo install cargo-deb

- name: Build Packages
run: |
for f in ares-*; do
cargo deb -p "$f" || exit 1
done
- name: Create Release (Ubuntu)
id: create_release_ubuntu
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ steps.tagName.outputs.tag }}
allowUpdates: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitPrereleaseDuringUpdate: true
artifacts: target/debian/*.deb

0 comments on commit 6463504

Please sign in to comment.