diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-11-30 21:10:56 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-11-30 21:10:56 +0300 |
commit | 345d9571f4872b8c3ff8391d292d3fdd498c4235 (patch) | |
tree | 9bc5b2c07ccd963ddb9f510543cb45e228d6a279 /.github | |
parent | 5242d4024a6c98b5426e158fee3aaab3695867e2 (diff) |
Update release.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7481cf2..5af0b55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,14 +9,13 @@ jobs: steps: - name: Create Release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.event.repository.updated_at }} + commit: ${{ github.head_ref || github.ref_name }} + name: Release ${{ github.event.repository.updated_at }} draft: true - prerelease: false - name: Output Release URL File run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt - name: Save Release URL File for publish @@ -81,12 +80,11 @@ jobs: - name: Get Release File Name & Upload URL id: get_release_info env: - TAG_REF_NAME: ${{ github.ref }} + TAG_REF_NAME: ${{ github.event.repository.updated_at }} REPOSITORY_NAME: ${{ github.repository }} run: | - echo ::set-output name=file_name::${REPOSITORY_NAME##*/}-${TAG_REF_NAME##*/v} # RepositoryName-v1.0.0 value=`cat release_url/release_url.txt` - echo ::set-output name=upload_url::$value + echo upload_url=$value >> $GITHUB_OUTPUT - name: Upload uses: actions/upload-release-asset@v1 env: |