Updated tagging
This commit is contained in:
@@ -32,44 +32,52 @@ jobs:
|
|||||||
mkdir -p ./output
|
mkdir -p ./output
|
||||||
python3 SpearheadCompile.py . ./output/spearhead.lua
|
python3 SpearheadCompile.py . ./output/spearhead.lua
|
||||||
|
|
||||||
|
|
||||||
- name: Check Change size PC
|
|
||||||
id: change_size
|
|
||||||
run: |
|
|
||||||
size="${{ inputs.change_size }}"
|
|
||||||
if [ "${{ inputs.release_candidate }}" = "true" ]; then
|
|
||||||
echo "patch_size=pre$size" >> "$GITHUB_OUTPUT"
|
|
||||||
else
|
|
||||||
echo "patch_size=$size" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
- name: Calculate Tag
|
- name: Calculate Tag
|
||||||
id: tag_version
|
id: tag_version_dry
|
||||||
uses: mathieudutour/github-tag-action@v6.2
|
uses: mathieudutour/github-tag-action@v6.2
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
default_bump: ${{ steps.change_size.outputs.patch_size }}
|
default_bump: ${{ steps.change_size.outputs.patch_size }}
|
||||||
default_prerelease_bump: ${{ steps.change_size.outputs.patch_size }}
|
default_prerelease_bump: ${{ steps.change_size.outputs.patch_size }}
|
||||||
custom_release_rules: ""
|
custom_release_rules: ""
|
||||||
append_to_pre_release_tag: "rc"
|
dry_run: true
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Check Change size PC
|
||||||
uses: actions/create-release@v1
|
id: retag
|
||||||
with:
|
run: |
|
||||||
tag_name: ${{ steps.tag_version.outputs.new_tag }}
|
tag="${{ steps.tag_version_dry.outputs.new_tag }}"
|
||||||
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
|
if [ "${{ inputs.release_candidate }}" = "true" ]; then
|
||||||
draft: true
|
echo "tag=$tag-rc" >> "$GITHUB_OUTPUT"
|
||||||
prerelease: ${{ inputs.release_candidate }}
|
else
|
||||||
env:
|
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
fi
|
||||||
|
|
||||||
- name: Upload Spearhead.lua Asset
|
- name: Calculate Tag
|
||||||
uses: actions/upload-release-asset@v1
|
id: tag_version
|
||||||
env:
|
uses: mathieudutour/github-tag-action@v6.2
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
asset_path: ./output/spearhead.lua
|
custom_tag : ${{ steps.retag.outputs.tag }}
|
||||||
asset_name: spearhead.lua
|
create_annotated_tag: true
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
|
# - name: Create GitHub Release
|
||||||
|
# uses: actions/create-release@v1
|
||||||
|
# id: create_release
|
||||||
|
# with:
|
||||||
|
# tag_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
|
# release_name: Release ${{ steps.tag_version.outputs.new_tag }}
|
||||||
|
# draft: true
|
||||||
|
# prerelease: ${{ inputs.release_candidate }}
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# - name: Upload Spearhead.lua Asset
|
||||||
|
# uses: actions/upload-release-asset@v1
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
# asset_path: ./output/spearhead.lua
|
||||||
|
# asset_name: spearhead.lua
|
||||||
|
# asset_content_type: application/octet-stream
|
||||||
|
|||||||
Reference in New Issue
Block a user