Skip to content

Try again?

Try again? #9

Workflow file for this run

name: release
on:
workflow_call:
inputs:
machine:
description: "Machine we are releasing for"
required: true
type: string
build:
description: "Machine we are releasing for"
required: true
type: string
app_name:
description: "Machine we are releasing for"
required: true
type: string
app_toml:
description: "Machine we are releasing for"
required: true
type: string
target:
description: "Machine we are releasing for"
required: true
type: string
image:
description: "Machine we are releasing for"
required: true
type: string
jobs:
do-build:
uses: ./.github/workflows/build-one.yml
with:
build: ${{ inputs.build }}
app_name: ${{ inputs.app_name }}
app_toml: ${{ inputs.app_toml }}
target: ${{ inputs.target }}
image: ${{ inputs.image }}
os: ubuntu-latest
release-build:
needs: do-build
runs-on: ubuntu-latest
steps:
- name: grab binary
id: grab
uses: actions/download-artifact@v3
with:
name: dist-ubuntu-latest-${{ inputs.build }}
path: out
- name: prep
run: |
VERSION=$(cut -d/ -f3- <<< "$GITHUB_REF")
VERSION=`echo $VERSION | awk -F- '{print $NF}'`
OUT=${{ steps.grab.outputs.download-path }}
for build in `ls $OUT`; do
mv $OUT/$build $OUT/`basename $build .zip`-$VERSION.zip
done
- name: cut release
uses: softprops/action-gh-release@v1
with:
name: Testing
draft: true
fail_on_unmatched_files: true

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 66
files: |
${{ steps.grab.outputs.download-path }}/*.zip