Add release automation for GitHub and Gitea
Some checks failed
Build Release / Build and Create Release (push) Has been cancelled
Some checks failed
Build Release / Build and Create Release (push) Has been cancelled
This commit is contained in:
39
.drone.yml
Normal file
39
.drone.yml
Normal file
@ -0,0 +1,39 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-release
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
ref:
|
||||
- refs/tags/v*
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache bash zip
|
||||
- VERSION=${DRONE_TAG#v}
|
||||
- mkdir -p build/plugin-reference-cleaner
|
||||
- cp plugin-reference-cleaner.php build/plugin-reference-cleaner/
|
||||
- cp readme.txt build/plugin-reference-cleaner/
|
||||
- cp LICENSE build/plugin-reference-cleaner/
|
||||
- cp README.md build/plugin-reference-cleaner/
|
||||
- cp CHANGELOG.md build/plugin-reference-cleaner/
|
||||
- cd build
|
||||
- zip -r ../plugin-reference-cleaner-$VERSION.zip plugin-reference-cleaner
|
||||
- cd ..
|
||||
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://gitea.wpallstars.com
|
||||
files:
|
||||
- plugin-reference-cleaner-*.zip
|
||||
title: Release ${DRONE_TAG}
|
||||
note: |
|
||||
Plugin Reference Cleaner ${DRONE_TAG}
|
||||
|
||||
See [CHANGELOG.md](https://gitea.wpallstars.com/wpallstars/plugin-reference-cleaner/src/branch/main/CHANGELOG.md) for details.
|
Reference in New Issue
Block a user