release action & repo structure

This commit is contained in:
17ms 2023-05-29 01:22:56 +03:00
parent 91f1a6d69f
commit 9d232bed81
5 changed files with 41 additions and 4 deletions

BIN
.github/docs/contego-dark.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
.github/docs/contego-light.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

37
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: leightbox
tar: unix
include: LICENSE
checksum: sha256
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,6 +1,6 @@
on: [push, pull_request]
name: Checkmate CI
name: cargo-checkmate continuous integration
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always

View File

@ -1,7 +1,7 @@
<div align="center" style="text-align:center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/17ms/contego/blob/master/docs/contego-dark.png">
<img src="https://github.com/17ms/contego/blob/master/docs/contego-light.png" width="800">
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/17ms/contego/blob/master/.github/docs/contego-dark.png">
<img src="https://github.com/17ms/contego/blob/master/.github/docs/contego-light.png" width="800">
</picture>
</div>