Try to fix release
This commit is contained in:
parent
34f7b309b6
commit
ec542bf766
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -74,26 +74,23 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions"
|
git config --global user.name "github-actions"
|
||||||
git config --global user.email "github-actions@github.com"
|
git config --global user.email "github-actions@github.com"
|
||||||
# Get the current date in YYYY-MM-DD format
|
DATE=$(date +"%Y-%m-%d-%H%:M:%S")
|
||||||
DATE=$(date +"%Y-%m-%d")
|
|
||||||
|
|
||||||
# Get the current commit hash (first 7 characters)
|
|
||||||
COMMIT_HASH=$(git rev-parse --short HEAD)
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
# Create the tag with the format "release-YYYY-MM-DD-commit"
|
|
||||||
TAG="automatic-release-${DATE}-${COMMIT_HASH}"
|
TAG="automatic-release-${DATE}-${COMMIT_HASH}"
|
||||||
|
|
||||||
# Create the annotated tag
|
|
||||||
git tag -a "$TAG" -m "Release on $DATE for commit $COMMIT_HASH"
|
git tag -a "$TAG" -m "Release on $DATE for commit $COMMIT_HASH"
|
||||||
|
|
||||||
# Push the tag to the remote repository
|
|
||||||
git push origin "$TAG"
|
git push origin "$TAG"
|
||||||
|
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
prerelease: true
|
||||||
|
name: "Development build"
|
||||||
|
tag_name: ${{env.RELEASE_TAG}}
|
||||||
|
fail_on_unmatched_files: true
|
||||||
|
make_latest: true
|
||||||
files: |
|
files: |
|
||||||
${{env.BLOAT_BUSTER_RELEASE_PATH_BASE}}.7z
|
${{env.BLOAT_BUSTER_RELEASE_PATH_BASE}}.7z
|
||||||
${{env.BLOAT_BUSTER_RELEASE_PATH_BASE}}.7z.b2sum
|
${{env.BLOAT_BUSTER_RELEASE_PATH_BASE}}.7z.b2sum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user