Skip to content

Commit

Permalink
correct release name
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jul 30, 2024
1 parent 1cb8766 commit 01a2272
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/multibuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Get current date
id: getdate
run: echo "::set-output name=getdate::$(date +'%Y.%m.%d-%H%M')"

- uses: actions/checkout@v4

- name: Create Release
Expand All @@ -64,8 +68,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
tag_name: v${{ steps.getdate.outputs.getdate }}
release_name: Release ${{ steps.getdate.outputs.getdate }}
draft: false
prerelease: false

Expand All @@ -76,5 +80,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for artifact in translator-*; do
gh release upload ${{ github.sha }} $artifact/*
gh release upload v${{ steps.getdate.outputs.getdate }} $artifact/*
done

0 comments on commit 01a2272

Please sign in to comment.