Skip to content

add flake

add flake #73

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