Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
UuuNyaa authored Mar 26, 2021
1 parent 7edcc95 commit d8764d5
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Release

on:
push:
branches:
- "!*"
tags:
- "v*"
issues:
types: [ opened, edited, deleted, closed, reopened, labeled, unlabeled, milestoned, demilestoned ]

workflow_dispatch:

Expand Down Expand Up @@ -40,18 +37,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
tag_name: ${{ github.run_number }}
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false

- name: Branch name
id: branch_name
run: |
echo ::set-output name=name::${GITHUB_REF#refs/*/}
echo ::set-output name=branch::${GITHUB_REF#refs/heads/}
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand All @@ -60,5 +50,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifact.zip
asset_name: blender_mmd_assets-${{ steps.branch_name.outputs.tag }}.zip
asset_name: blender_mmd_assets-${{ github.run_number }}.zip
asset_content_type: application/zip

0 comments on commit d8764d5

Please sign in to comment.