Skip to content

Add avatar download instructions. (#4) #11

Add avatar download instructions. (#4)

Add avatar download instructions. (#4) #11

Workflow file for this run

# Workflow to automatically create deliverables
name: Build on push
on:
[push, pull_request]
jobs:
build:
name: Assembling artifacts
runs-on: ubuntu-20.04
# Note, to satisfy the asset library we need to make sure our zip files have a root folder
# this is why we checkout into demo/godot_rpm_avatar
# and build plugin/godot_rpm_avatar
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: demo/godot_rpm_avatar
- name: Create Godot RPM Avatar plugin
run: |
mkdir plugin
mkdir plugin/godot_rpm_avatar
mkdir plugin/godot_rpm_avatar/addons
cp -r demo/godot_rpm_avatar/addons/godot_rpm_avatar plugin/godot_rpm_avatar/addons
cp demo/godot_rpm_avatar/LICENSE plugin/godot_rpm_avatar/addons/godot_rpm_avatar
cp demo/godot_rpm_avatar/CONTRIBUTORS.md plugin/godot_rpm_avatar/addons/godot_rpm_avatar
cp demo/godot_rpm_avatar/VERSIONS.md plugin/godot_rpm_avatar/addons/godot_rpm_avatar
rm -rf demo/godot_rpm_avatar/.git
rm -rf demo/godot_rpm_avatar/.github
- name: Create Godot RPM Avatar library artifact
uses: actions/upload-artifact@v2
with:
name: godot_rpm_avatar
path: |
plugin
- name: Create Godot RPM Avatar demo artifact
uses: actions/upload-artifact@v2
with:
name: godot_rpm_avatar_demo
path: |
demo
- name: Zip asset
run: |
cd plugin
zip -qq -r ../godot_rpm_avatar.zip godot_rpm_avatar
cd ../demo
zip -qq -r ../godot_rpm_avatar_demo.zip godot_rpm_avatar
cd ..
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
- name: Create and upload asset
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "godot_rpm_avatar.zip,godot_rpm_avatar_demo.zip"
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')