-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.35 KB
/
release.yaml
File metadata and controls
42 lines (39 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: build and publish release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: compile svalin and svalin-iced
run: cargo build --release --bins
- name: install cargo-deb
run: cargo install cargo-deb
- name: build debian package
run: cargo-deb --package svalin --manifest-path svalin/Cargo.toml --no-build -o target/debian/svalin.deb
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
target/release/svalin
target/release/svalin_iced
target/debian/*.deb
prerelease: true
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/svalin:${{ github.ref_name }},ghcr.io/${{ github.repository_owner }}/svalin:${{ endsWith(github.ref_name, 'alpha') && 'alpha' || endsWith(github.ref_name, 'beta') && 'beta' || 'latest' }}