First test
Some checks failed
Trigger build for deploying blog updates / build (push) Failing after 0s
Some checks failed
Trigger build for deploying blog updates / build (push) Failing after 0s
This commit is contained in:
23
.gitea/workflows/deploy.yml
Normal file
23
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Trigger build for deploying blog updates
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Trigger blog update
|
||||
run: |
|
||||
curl -X POST "https://gitea.example.com/api/v1/repos/Syndria98/aranroig.com/actions/workflows/deploy.yml/dispatches" \
|
||||
-H "Authorization: token {{ secrets.GITEA }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"ref": "refs/heads/main",
|
||||
"inputs": {
|
||||
"env": "production",
|
||||
"version": "1.2.3"
|
||||
}
|
||||
}'
|
||||
Reference in New Issue
Block a user