Skip to content

Workflow file for this run

on:
release:
types: [created]
jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- release_for: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
bin: precious
name: precious-Darwin-x86_64.tar.gz
command: both
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Publish release artifacts
uses: actions/upload-artifact@v3
with:
name: repos-${{ matrix.platform.os_name }}
path: "repos-*"
if: matrix.toolchain == 'stable'
- name: Generate SHA-256
run: shasum -a 256 ${{ matrix.platform.name }}
if: |

Check failure on line 36 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 36, Col: 13): Unexpected end of expression: ''refs/tags/v''. Located at position 97 within expression: matrix.toolchain == 'stable' && matrix.platform.os == 'macOS-latest' && startsWith( github.ref, 'refs/tags/v'
matrix.toolchain == 'stable' &&
matrix.platform.os == 'macOS-latest' &&
startsWith( github.ref, 'refs/tags/v'
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
draft: true
files: "repos*"
if: matrix.toolchain == 'stable' && startsWith( github.ref, 'refs/tags/v' )