Skip to content

FIX: Fuck you microsoft for making me waste a sunday afternoon on thi… #31

FIX: Fuck you microsoft for making me waste a sunday afternoon on thi…

FIX: Fuck you microsoft for making me waste a sunday afternoon on thi… #31

Workflow file for this run

name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build:
needs: setup
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, windows-latest]
include:
- os: macos-latest
binary: s3lightfixes
archive: macos-latest.zip
- os: ubuntu-20.04
binary: s3lightfixes
archive: ubuntu-latest.zip
- os: windows-latest
binary: s3lightfixes.exe
archive: windows-latest.zip
runs-on: ${{ matrix.os }}
permissions: write-all
env:
SIGN_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: build
run: cargo build --release
- uses: sigstore/cosign-installer@main
- name: sign
run: |
echo $SIGN_KEY
echo $SIGN_KEY > private.key
cosign sign-blob -y --key private.key ./target/release/${{ matrix.binary }} --bundle S3LF-${{ matrix.os }}.bundle
rm -rf private.key
- name: compress
run: 7z a -tzip ${{matrix.archive}} S3LF-${{ matrix.os }}.bundle ./target/release/${{matrix.binary}}
- name: upload
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
${{ matrix.archive }}