-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.42 KB
/
release-packaging.yaml
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
43
44
45
46
47
48
49
50
51
52
53
on:
push:
branches:
- mistress
tags:
- "v*.*.*"
name: Release Packaging
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: Release Packaging
env:
PROJECT_NAME: blog
runs-on: ubuntu-latest
container:
image: rust:alpine
steps:
- uses: actions/checkout@v4
- name: install deps
run: apk update && apk upgrade && apk add musl-dev libgpg-error-dev libgpg-error-static libassuan-dev libassuan-static http-parser http-parser-dev gpg gpgme gpgme-dev openssl-dev openssl-libs-static libgit2-dev libgit2-static zlib-dev zlib-static
- uses: Swatinem/rust-cache@v2
- name: Release Build
run: cargo build --release
env:
OPENSSL_STATIC: "1"
OPENSSL_LIB_DIR: /usr/lib
OPENSSL_INCLUDE_DIR: /usr/include/openssl
ZLIB_STATIC: "1"
ZLIB_LIB_DIR: /usr/lib
ZLIB_INCLUDE_DIR: /usr/include/
LIBGIT2_STATIC: "1"
SYSTEM_DEPS_LINK: static
- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/mistress'
with:
name: dotfox
path: target/release/dotfox
- name: Publish
id: publishing
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
target/release/dotfox
draft: true