Build and publish eventLabs WordPress updates from Gitea
All checks were successful
WordPress release / release (push) Successful in 5s
All checks were successful
WordPress release / release (push) Successful in 5s
This commit is contained in:
27
.gitea/workflows/release.yml
Normal file
27
.gitea/workflows/release.yml
Normal 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
|
||||
Reference in New Issue
Block a user