crabidy/.gitea/workflows/release.yml
Workflow config file is invalid. Please check your config file: yaml: line 16: did not find expected key

34 lines
1.0 KiB
YAML

name: CI release
run-name: CI release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: rust-cross
name: stable / cross-${{ matrix.target }}
strategy:
fail-fast: true
matrix:
target: ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]
steps:
if: github.repository == 'octo-org/octo-repo-prod'
- uses: actions/checkout@v3
- run: .gitea/scripts/check-tag
- run: cargo fmt --check
- uses: https://github.com/Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- name: cross compile for ${{ matrix.target }}
run: cross build --target ${{ matrix.target }} --release
- uses: chmanie/release-action@v1.0.1
with:
files: |-
target/${{ matrix.target }}/release/cbd-tui
target/${{ matrix.target }}/release/crabidy-server
file_key: '_${{ matrix.target }}'
api_key: '${{secrets.RELEASE_TOKEN}}'
pre_release: true