generate short release tag
Some checks failed
Build project / Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) (StandaloneWindows64, 6000.0.37f1) (push) Has been cancelled
Build project / Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) (StandaloneLinux64, 6000.0.37f1) (push) Has been cancelled
Some checks failed
Build project / Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) (StandaloneWindows64, 6000.0.37f1) (push) Has been cancelled
Build project / Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) (StandaloneLinux64, 6000.0.37f1) (push) Has been cancelled
This commit is contained in:
parent
208177a102
commit
6550303edf
@ -61,6 +61,7 @@ jobs:
|
|||||||
- name: Zip build artifacts
|
- name: Zip build artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/zipped_builds
|
mkdir -p /tmp/zipped_builds
|
||||||
|
rm -f /tmp/zipped_builds/*.zip
|
||||||
if [ "${{ matrix.targetPlatform }}" == "StandaloneLinux64" ]; then
|
if [ "${{ matrix.targetPlatform }}" == "StandaloneLinux64" ]; then
|
||||||
cd build/StandaloneLinux64
|
cd build/StandaloneLinux64
|
||||||
zip -r /tmp/zipped_builds/build_StandaloneLinux64.zip . \
|
zip -r /tmp/zipped_builds/build_StandaloneLinux64.zip . \
|
||||||
@ -78,6 +79,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls -R /tmp/zipped_builds
|
ls -R /tmp/zipped_builds
|
||||||
|
|
||||||
|
- name: Determine tag name
|
||||||
|
id: tag
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
BUILD_NUMBER="$(git rev-list --count HEAD)"
|
||||||
|
SHORT_HASH="$(git rev-parse --short=7 HEAD)"
|
||||||
|
if [[ "${{ github.ref_name }}" == "main" ]]; then
|
||||||
|
echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
SAFE_NAME=$(echo "${{ github.ref_name }}" | tr '/' '-')
|
||||||
|
echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Create Gitea Release and Upload Assets
|
- name: Create Gitea Release and Upload Assets
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
env:
|
||||||
@ -85,8 +99,8 @@ jobs:
|
|||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
with:
|
with:
|
||||||
server_url: ${{ github.server_url }}
|
server_url: ${{ github.server_url }}
|
||||||
tag_name: ${{ github.sha }}
|
tag_name: ${{ steps.tag.outputs.name }}
|
||||||
name: Release ${{ github.sha }}
|
name: Release ${{ steps.tag.outputs.name }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
|
Loading…
Reference in New Issue
Block a user