diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5256ec5 --- /dev/null +++ b/.github/workflows/main.yml @@ -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