-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathweb-app.yml
More file actions
37 lines (33 loc) · 911 Bytes
/
web-app.yml
File metadata and controls
37 lines (33 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Example workflow for web applications (Laravel, Next.js, etc.)
# Copy this file to your project's .github/workflows/release.yml
name: Release
on:
push:
branches:
- 'release/**'
- 'hotfix/**'
pull_request:
types: [closed]
branches: [main]
jobs:
release:
uses: banua-coder/banua-coder-workflow/.github/workflows/release.yml@v1
with:
project-type: web-app
main-branch: main
develop-branch: develop
changelog-format: keepachangelog
auto-merge-backport: false
node-version: '20'
php-version: '8.2'
secrets: inherit
# Deploy when tag is pushed
deploy:
if: startsWith(github.ref, 'refs/tags/')
needs: release
uses: banua-coder/banua-coder-workflow/.github/workflows/deploy-on-tag.yml@v1
with:
environment: production
deploy-provider: ssh
deploy-path: /var/www/your-app
secrets: inherit