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