Skip to content

Version bump to 1.1.0-beta.0 #19

Version bump to 1.1.0-beta.0

Version bump to 1.1.0-beta.0 #19

Workflow file for this run

name: Release
on:
push:
tags:
- 0.*
- 1.*
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: List Keys
run: gpg -K
- name: Build
run: |
cargo build --release
- name: Build bcryptprimitives.rs shim
run: rustc shims/bcryptprimitives.rs -Copt-level=3 -Clto=fat --out-dir target/release
- name: Code Sign
uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.CODE_SIGN_CERTIFICATE }}'
password: '${{ secrets.CODE_SIGN_PASSWORD }}'
recursive: false
files: |
target/release/deucalion.dll
target/release/deucalion_client.exe
target/release/bcryptprimitives.rs
- name: Deucalion SHA256Sum and GPG Sign
run: |
sha256sum target/release/deucalion.dll > deucalion.sha256sum
gpg --output deucalion.sha256sum.asc --clearsign deucalion.sha256sum
cat deucalion.sha256sum.asc
- name: Deucalion Client SHA256Sum and GPG Sign
run: |
sha256sum target/release/deucalion_client.exe > deucalion_client.sha256sum
gpg --output deucalion_client.sha256sum.asc --clearsign deucalion_client.sha256sum
cat deucalion_client.sha256sum.asc
- name: Bcryptprimitives SHA256Sum and GPG Sign
run: |
sha256sum target/release/bcryptprimitives.dll > bcryptprimitives.sha256sum
gpg --output bcryptprimitives.sha256sum.asc --clearsign bcryptprimitives.sha256sum
cat bcryptprimitives.sha256sum.asc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: deucalion
path: |
target/release/deucalion.dll
target/release/deucalion_client.exe
target/release/bcryptprimitives.dll
deucalion.sha256sum
deucalion.sha256sum.asc
deucalion_client.sha256sum
deucalion_client.sha256sum.asc
bcryptprimitives.sha256sum
bcryptprimitives.sha256sum.asc
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
- name: Release
uses: softprops/action-gh-release@v1
with:
name: Deucalion ${{ github.ref_name }}
body: "# CHANGELOG"
draft: true
files: |
target/release/deucalion.dll
target/release/deucalion_client.exe
target/release/bcryptprimitives.dll
deucalion.sha256sum
deucalion.sha256sum.asc
deucalion_client.sha256sum
deucalion_client.sha256sum.asc
bcryptprimitives.sha256sum
bcryptprimitives.sha256sum.asc