Skip to content

Commit

Permalink
fix implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed May 22, 2024
1 parent 06ad3f8 commit 667214e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 79 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- {os: ubuntu-latest}
os:
- ubuntu-latest
# - {os: macos-12}
# - {os: macos-latest}
# - {os: windows-latest}
Expand All @@ -49,5 +49,6 @@ jobs:
- uses: arturo-lang/bundler-releases@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
bundling: ${{ needs.test.outputs }}
name: ${{ needs.test.outputs.EXEFILE }}
version: ${{ needs.test.outputs.VERSION }}

30 changes: 7 additions & 23 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ inputs:
default: ''
release:
description: >-
Set to true, if it's running in a release build, to automatically package all assets.
Prepare for release.
default: 'false'
release_description:
description: >-
The body for the releases (if `release` is set). If this is not set, then the `github.ref` will be used.
default: ''
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -75,30 +71,18 @@ runs:
fi
if [ "${{ inputs.version }}" != "" ]; then
echo "VERS=-${{ inputs.version }}" >> $GITHUB_ENV
echo "VERS=-${{ inputs.version }}" >> $GITHUB_OUTPUT
echo "VERSION=-${{ inputs.version }}" >> $GITHUB_ENV
echo "VERSION=-${{ inputs.version }}" >> $GITHUB_OUTPUT
else
echo "VERS=" >> $GITHUB_ENV
echo "VERS=" >> $GITHUB_OUTPUT
echo "VERSION=" >> $GITHUB_ENV
echo "VERSION=" >> $GITHUB_OUTPUT
fi
if [ "${{ inputs.release }}" = "true" ]; then
if [ "${{ inputs.version}}" != "" ]; then
ARCHV_VERS=$(arturo --evaluate "print replace {${{ github.ref_name }}} {/^v/} {}")
echo "VERS=$ARCHV_VERS" >> $GITHUB_ENV
fi
if [ "${{ inputs.release_description }}" = "" ]; then
echo "RELDESC=${{ github.ref }}" >> $GITHUB_ENV
echo "RELDESC=${{ github.ref }}" >> $GITHUB_OUTPUT
else
echo "RELDESC=${{ inputs.release_description }}" >> $GITHUB_ENV
echo "RELDESC=${{ inputs.release_description }}" >> $GITHUB_OUTPUT
echo "VERSION=$ARCHV_VERS" >> $GITHUB_ENV
fi
echo "RELEASE=true" >> $GITHUB_OUTPUT
else
echo "RELEASE=false" >> $GITHUB_OUTPUT
fi
OSNAMELOWER=$(arturo --evaluate "print lower {${{ runner.os }}}")
Expand All @@ -118,7 +102,7 @@ runs:
- name: Upload Artifact
uses: 'actions/upload-artifact@v4'
with:
name: ${{ env.EXEFILE }}${{ env.VERS }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}
name: ${{ env.EXEFILE }}${{ env.VERSION }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}
path: ${{ env.EXEFILE }}-${{ env.ARCHNAME }}-${{ env.OSNAME }}

branding:
Expand Down
53 changes: 0 additions & 53 deletions subaction/action.yml

This file was deleted.

0 comments on commit 667214e

Please sign in to comment.