Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
feat: jaoweb更新時もdist作成するように変更 (#114)
Browse files Browse the repository at this point in the history
* feat: jaoweb更新時もdist作成するように変更

* fix: action name
  • Loading branch information
book000 authored Dec 27, 2021
1 parent 2be3f9d commit f616fd3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
pull_request_target:
branches:
- main
Expand All @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit f616fd3

Please sign in to comment.