Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
todays-mitsui committed May 22, 2024
1 parent 1bebd50 commit e064a4a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "20"

Expand All @@ -37,7 +37,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: get tag name
run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Create release
id: create_release
Expand All @@ -48,7 +51,7 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
This is the release for tag ${{ github.ref }}.
This is the release for tag ${{ env.TAG }}.
draft: false
prerelease: false

Expand All @@ -64,5 +67,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: wp-block-nonogram.zip
asset_name: wp-block-nonogram_${{ github.ref }}.zip
asset_name: wp-block-nonogram_${{ env.TAG }}.zip
asset_content_type: application/zip

0 comments on commit e064a4a

Please sign in to comment.