From f616fd3b7e670fa4477731e96b107e177e8de8ef Mon Sep 17 00:00:00 2001 From: Tomachi Date: Mon, 27 Dec 2021 23:15:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20jaoweb=E6=9B=B4=E6=96=B0=E6=99=82?= =?UTF-8?q?=E3=82=82dist=E4=BD=9C=E6=88=90=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4=20(#114)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: jaoweb更新時もdist作成するように変更 * fix: action name --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 181de25d..6e7923ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release on: + workflow_dispatch: pull_request_target: branches: - main @@ -10,12 +11,12 @@ on: jobs: release: runs-on: ubuntu-latest - if: github.event.pull_request.merged == true + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true steps: - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "::set-output name=datetime::$(date +'+%Y%m%d-%H%M%S')" - name: Clone jaoafa/jaoweb uses: actions/checkout@v2 @@ -29,7 +30,6 @@ jobs: uses: actions/checkout@v2 with: path: content - ref: ${{ github.event.pull_request.head.sha }} - name: Download authors.json & categories.json run: | @@ -87,8 +87,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v${{ steps.docs-vars.outputs.SHORT_SHA }} - release_name: Release ${{ steps.date.outputs.date }} (${{ steps.docs-vars.outputs.SHORT_SHA }}) + tag_name: v${{ steps.date.outputs.datetime }} + release_name: Release v${{ steps.date.outputs.datetime }} draft: false prerelease: true body: |