Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Jan 24, 2023
1 parent 9253209 commit f04797d
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
name: release
on:
workflow_dispatch:
'on':
workflow_dispatch: null
push:
branches: [ master ]
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
PACK_NAME: ""
PACK_NAME: ''
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get current date
id: date
run: echo "::set-output name=today::$(date +'%Y%m%d%M%S')"

- uses: release-drafter/release-drafter@v5
name: Draft
with:
run: 'echo "::set-output name=today::$(date +''%Y%m%d%M%S'')"'
- uses: release-drafter/release-drafter@v5
name: Draft
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: 创建GitHub Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
tag_name: ${{ steps.date.outputs.today }}
release_name: ${{ steps.date.outputs.today }}
body: ${{steps.releasedraft.outputs.content}}
tag_name: '${{ steps.date.outputs.today }}'
release_name: '${{ steps.date.outputs.today }}'
body: '${{steps.releasedraft.outputs.content}}'
draft: false
prerelease: false

0 comments on commit f04797d

Please sign in to comment.