mirror of
https://github.com/Andrewcpu/elevenlabs-api.git
synced 2026-05-06 03:00:23 -04:00
Compare commits
15 Commits
v1.0-SNAPS
...
v$(steps.v
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00f1ea43f9 | ||
|
|
f0df489898 | ||
|
|
17cd54974e | ||
|
|
7963facc4d | ||
|
|
1e720c9026 | ||
|
|
ee9f53c23c | ||
|
|
f244bb609d | ||
|
|
6ae2ecfde1 | ||
|
|
b35ee41300 | ||
|
|
3fed0721bd | ||
|
|
0d42f04977 | ||
|
|
924557e5ac | ||
|
|
0e6bb27d1a | ||
|
|
2cc2b39cb3 | ||
|
|
8e1be9659c |
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@@ -27,25 +27,46 @@ jobs:
|
||||
id: version
|
||||
run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
||||
|
||||
- name: Fetch tags from remote
|
||||
run: git fetch --tags
|
||||
|
||||
- name: Get current tag
|
||||
id: current_tag
|
||||
run: echo ::set-output name=tag::$(git describe --abbrev=0 --tags 2>/dev/null || echo '')
|
||||
|
||||
- name: Create new tag
|
||||
id: makeatag
|
||||
run: |
|
||||
if [ `$(git tag v${{ steps.version.outputs.version }} | wc -l)` -le 2 ]; then
|
||||
echo ::set-output name=successful::true
|
||||
else
|
||||
echo ::set-output name=successful::false
|
||||
fi
|
||||
|
||||
- name: Push new tag
|
||||
if: ${{steps.makeatag.successful}}
|
||||
run: git push origin v${{ steps.version.outputs.version }}
|
||||
|
||||
- name: Create Release
|
||||
if: always()
|
||||
id: create_release
|
||||
uses: actions/create-release@v1.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: v${{ steps.version.outputs.version }}
|
||||
release_name: Release v${{ steps.version.outputs.version }}
|
||||
body: 'Release of version ${{ steps.version.outputs.version }}'
|
||||
tag_name: ${{ steps.current_tag.outputs.tag || 'v$(steps.version.outputs.version)' }}
|
||||
release_name: "Release v${{ steps.version.outputs.version }} Build ${{ github.run_number }}"
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload artifact to release
|
||||
if: always()
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: target/elevenlabs-api-*full.jar
|
||||
asset_name: elevenlabs-api-${{ steps.version.outputs.version }}-SNAPSHOT-full.jar
|
||||
asset_path: /home/runner/work/elevenlabs-api/elevenlabs-api/target/elevenlabs-api-${{ steps.version.outputs.version }}-full.jar
|
||||
asset_name: elevenlabs-api-${{ steps.version.outputs.version }}-full.jar
|
||||
asset_content_type: application/java-archive
|
||||
|
||||
Reference in New Issue
Block a user