mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-11-19 09:25:39 +00:00
4b26b71a38
* fix workflows * remove a unused function * initialize record table state every time specifying table * add a crates.io badge * close pool if exists * remove unneeded lines * change gobang.gif * fix layout * update gobang.gif * refactor `utils::get_records` * refactor handlers * change gobang.gif * fix clippy warnings
32 lines
593 B
YAML
32 lines
593 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
check:
|
|
name: Check
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cargo check
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
|
|
release:
|
|
name: Cargo publish
|
|
runs-on: ubuntu-latest
|
|
needs: check
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- run: cargo login ${CRATES_IO_TOKEN}
|
|
env:
|
|
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
|
- run: cargo publish
|