Files
eventLabs/.gitea/workflows/release.yml
josh 91a81e761b
All checks were successful
WordPress release / release (push) Successful in 5s
Build and publish eventLabs WordPress updates from Gitea
2026-11-11 22:00:42 -05:00

28 lines
736 B
YAML

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