diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da836dc..fef463a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" @@ -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 @@ -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 @@ -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