Build and publish eventLabs WordPress updates from Gitea
All checks were successful
WordPress release / release (push) Successful in 5s

This commit is contained in:
josh
2026-11-11 22:00:42 -05:00
parent 986f11aeb2
commit 91a81e761b
8 changed files with 425 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
name: WordPress release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out the tagged source
env:
TAG: ${{ gitea.ref_name }}
COMMIT: ${{ gitea.sha }}
run: |
git clone --depth 1 --branch "$TAG" https://git.labs.casa/josh/eventLabs.git source
test "$(git -C source rev-parse HEAD)" = "$(git -C source rev-parse "$COMMIT^{commit}")"
- name: Build and publish the WordPress ZIP
working-directory: source
env:
TAG: ${{ gitea.ref_name }}
EVENTLABS_RELEASE_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: python3 scripts/release.py "$TAG" --publish