Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 6 additions & 31 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
description: 'Tag name to create (e.g. 1.28.5)'
required: true
type: string
tag_message:
description: 'Tag annotation message'
required: false
default: 'ESP release'
type: string

jobs:
build-and-release:
Expand All @@ -32,7 +27,9 @@ jobs:
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0

- name: Mark workspace as safe for git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Pull LFS files
run: git lfs pull
Expand All @@ -46,37 +43,15 @@ jobs:
- name: Clean up build intermediates
run: rm -rf ESP ESP*.tgz

- name: Configure git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Commit build artifacts
run: |
git add lib/ include/ udc/ pyESP/
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "Build artifacts for ${{ inputs.tag }}"
fi

- name: Create annotated tag
run: git tag -a "${{ inputs.tag }}" -m "${{ inputs.tag_message }}"

- name: Push commit and tag
run: |
git push origin HEAD:${{ github.ref_name }}
git push origin "${{ inputs.tag }}"

- name: Create release archive
run: |
git archive --format=tar.gz \
-o ${{ github.event.repository.name }}-${{ inputs.tag }}.tar.gz \
HEAD CMakeLists.txt README.md include lib pyESP test udc
tar czf ${{ github.event.repository.name }}-${{ inputs.tag }}.tar.gz \
CMakeLists.txt README.md include lib pyESP test udc

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag }}
name: ${{ inputs.tag }}
target_commitish: ${{ github.sha }}
files: ${{ github.event.repository.name }}-${{ inputs.tag }}.tar.gz
4 changes: 2 additions & 2 deletions lib/edgeAttr.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions lib/libcaps.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions lib/libegads.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions lib/libocsm.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions lib/libuvmap.a
Git LFS file not shown