Revert "Use external action"
This reverts commit bb494d512c5705650b4f6ca1710666a469f38d7e.
This commit is contained in:
parent
bb494d512c
commit
34f7b309b6
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -67,13 +67,33 @@ jobs:
|
|||||||
CMAKE_BUILD_TYPE: ${{matrix.CMAKE_BUILD_TYPE}}
|
CMAKE_BUILD_TYPE: ${{matrix.CMAKE_BUILD_TYPE}}
|
||||||
CMAKE_PREFIX_PATH: ${{steps.FETCH.outputs.CMAKE_PREFIX_PATH}}
|
CMAKE_PREFIX_PATH: ${{steps.FETCH.outputs.CMAKE_PREFIX_PATH}}
|
||||||
BUSTER_GITHUB_RUN: "true"
|
BUSTER_GITHUB_RUN: "true"
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- name: Create tag
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions"
|
||||||
|
git config --global user.email "github-actions@github.com"
|
||||||
|
# Get the current date in YYYY-MM-DD format
|
||||||
|
DATE=$(date +"%Y-%m-%d")
|
||||||
|
|
||||||
|
# Get the current commit hash (first 7 characters)
|
||||||
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
|
# Create the tag with the format "release-YYYY-MM-DD-commit"
|
||||||
|
TAG="automatic-release-${DATE}-${COMMIT_HASH}"
|
||||||
|
|
||||||
|
# Create the annotated tag
|
||||||
|
git tag -a "$TAG" -m "Release on $DATE for commit $COMMIT_HASH"
|
||||||
|
|
||||||
|
# Push the tag to the remote repository
|
||||||
|
git push origin "$TAG"
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
automatic_release_tag: "latest"
|
|
||||||
prerelease: true
|
|
||||||
title: "Development Build"
|
|
||||||
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