Skip to content

upload artifact

upload artifact #15

Workflow file for this run

name: cli-release
on:
workflow_dispatch:
inputs:
tag:
description: release/tag to upload artifacts to
required: true
type string

Check failure on line 9 in .github/workflows/cli-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cli-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
build-cli:
strategy:
matrix:
arch: ["x86_64", "aarch64"]
target: [
{ os: "ubuntu-latest", triple-suffix: "-unknown-linux-gnu" },
#{ os: "windows-latest", triple-suffix: "-pc-windows-msvc" },
#{ os: "macos-latest", triple-suffix: "-apple-darwin" }
]
runs-on: ${{ matrix.target.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }}
args: "--locked --release"
strip: true
- name: Publish
env:
GH_TOKEN: '${{ secrets.DIVVIUP_GITHUB_AUTOMATION_RELEASE_PAT }}'
run: |
cp target/release/divviup divviup-${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }}
gh release upload \
${{ inputs.tag }} divviup-${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }} \
--clobber