Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TimonLukas committed Jun 19, 2022
1 parent bb20c10 commit d95a62a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ inputs:
runs:
using: "composite"
steps:
- id: paths
- name: Generate paths
id: paths
shell: bash
run: |
echo "::set-output name=executable::$(pwd)/${{ inputs.executable-name }}"
Expand All @@ -37,13 +38,15 @@ runs:
uses: actions/cache@v3
with:
path: ${{ steps.paths.outputs.temp }}
key: action-static-redbean-${{ inputs.version }} }}
key: action-static-redbean-${{ inputs.version }}
- if: ${{ !inputs.cache || steps.cache.outputs.cache-hit != 'true' }}
name: Fetch redbean-${{ inputs.version }}.com
run: curl "https://redbean.dev/redbean-${{ inputs.version }}.com" >"${{ steps.paths.outputs.temp }}/redbean.com"
shell: bash
- run: cp "${{ steps.paths.outputs.temp }}/redbean.com" "${{ steps.paths.outputs.executable }}"
shell: bash
- if: ${{ inputs.fallback != false }}
name: Add code for fallback to "${{ inputs.fallback }}"
shell: bash
working-directory: ${{ steps.paths.outputs.temp }}
run: |
Expand All @@ -60,6 +63,7 @@ runs:
zip -qq "${{ steps.paths.outputs.executable }}" .init.lua
rm .init.lua
- if: ${{ inputs.launch != false }}
name: Add code to point browser to "${{ inputs.launch }}"
shell: bash
working-directory: ${{ steps.paths.outputs.temp }}
run: |
Expand All @@ -68,5 +72,6 @@ runs:
zip -qq "${{ steps.paths.outputs.executable }}" .init.lua
rm .init.lua
- run: zip -qq -r "${{ steps.paths.outputs.executable }}" ./**
name: Add static files to executable
shell: bash
working-directory: ${{ inputs.input }}

0 comments on commit d95a62a

Please sign in to comment.