Skip to content

Commit

Permalink
upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed Jun 7, 2024
1 parent 4b6dd97 commit d8d57d6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: cli-release

on:
workflow_dispatch:
inputs:
tag:
description: release/tag to upload artifacts to
required: true
type string
release:
types: [published]

Expand All @@ -20,9 +25,19 @@ jobs:
]
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@v4
- uses: houseabsolute/actions-rust-cross@v0
- 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

0 comments on commit d8d57d6

Please sign in to comment.