SuperMarioOdysseyOnline/.github/actions/attach/action.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-12 22:01:23 +00:00
name: Attach build artifacts to release
inputs:
filename:
description : 'Filename of the build artifact'
required : true
upload_url:
description : 'Upload URL of the release'
required : true
GITHUB_TOKEN:
description : 'Secret GitHub token required for uploading to the release'
required : true
runs:
using: composite
steps:
-
name : Download artifacts
2024-05-15 19:50:36 +00:00
uses : actions/download-artifact@v4
2022-07-12 22:01:23 +00:00
with:
name : ${{ inputs.filename }}
path : ./starlight_patch_100/
-
name : Zip artifacts
shell : bash
run: |
cd ./starlight_patch_100/
2022-09-04 23:41:34 +00:00
zip -rmT9 "${{ inputs.filename }}.zip" ./*
2022-07-12 22:01:23 +00:00
-
name : Attach to release
uses : actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
with:
upload_url : ${{ inputs.upload_url }}
asset_path : ./starlight_patch_100/${{ inputs.filename }}.zip
2022-09-04 23:41:34 +00:00
asset_name : "${{ inputs.filename }}.zip"
2022-07-12 22:01:23 +00:00
asset_content_type : application/zip
2022-09-04 23:41:34 +00:00
-
name : Cleanup artifacts
shell : bash
run: |
rm -rf ./starlight_patch_100/