Skip to content

update dependencies #12

update dependencies

update dependencies #12

Workflow file for this run

name: Make a release
on:
push:
tags:
- 'v*'
permissions:
contents: read
packages: write
id-token: write
jobs:
release:
name: Build and Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: http-server
asset_name: http-server-$tag-linux-amd64.zip
zipcmd: zip -j
- os: macos-latest
artifact_name: http-server
asset_name: http-server-$tag-macos-amd64.zip
zipcmd: zip -j
- os: windows-latest
artifact_name: http-server.exe
asset_name: http-server-$tag-windows.zip
zipcmd: 7z a -tzip
steps:
- uses: actions/checkout@v4
- uses: sigstore/cosign-installer@v3.4.0
- name: Build project
run: cargo build --release --locked
- name: make release.zip
run: ${{ matrix.zipcmd}} release.zip target/release/${{ matrix.artifact_name }}
- name: Sign artifacts
run: cosign sign-blob --output-signature release.zip.sig --output-certificate release.zip.cert release.zip
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: release.zip*
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}