This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
chore(deps): bump serde from 1.0.193 to 1.0.195 (#283) #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
contents: write | |
packages: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
name: Installing Rust Toolchain | |
with: | |
profile: default | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2.7.1 | |
- uses: actions-rs/cargo@v1 | |
name: Cargo Fmt | |
with: | |
command: fmt | |
args: --all -- --check | |
- uses: actions-rs/cargo@v1 | |
name: Cargo Clippy | |
with: | |
command: clippy | |
args: --release -- -D warnings | |
- uses: actions-rs/cargo@v1 | |
name: Cargo Build | |
with: | |
command: build | |
args: --release | |
- uses: google-github-actions/release-please-action@v4 | |
name: Release | |
id: release | |
with: | |
release-type: rust | |
package-name: fikabot | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
if: steps.release.outputs.release_created | |
- name: Log in to GitHub Container registry | |
uses: docker/login-action@v3.0.0 | |
if: steps.release.outputs.release_created | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Package | |
if: steps.release.outputs.release_created | |
run: task release TAG=${{ steps.release.outputs.tag_name }} |