Skip to content

Commit

Permalink
Merge branch 'main' of github.com:valentinwinkelmann/CC2UMAConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinwinkelmann committed Mar 6, 2024
2 parents 02628f0 + 30efa52 commit a800604
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release UMAConverterBlender

on:
push:
paths:
- 'UMAConverterBlender/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install zip
run: sudo apt-get install zip

- name: Zip UMAConverterBlender directory
run: zip -r UMAConverterBlender.zip UMAConverterBlender/

- name: Get current date and time
id: date
run: echo "::set-output name=now::$(date +'%Y-%m-%d_%H-%M-%S')"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ steps.date.outputs.now }}
release_name: Release ${{ steps.date.outputs.now }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./UMAConverterBlender.zip
asset_name: UMAConverterBlender.zip
asset_content_type: application/zip

0 comments on commit a800604

Please sign in to comment.