-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (40 loc) · 1.32 KB
/
Copy pathmake-releases.yml
File metadata and controls
46 lines (40 loc) · 1.32 KB
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
38
39
40
41
42
43
44
45
46
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: "ubuntu-24.04"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
coverage: none
- name: Make releases
run: |
echo "Making a release for GitHub"
php src/bin/make-release.php "github"
echo ""
echo "Making a release for GitLab"
php src/bin/make-release.php "gitlab"
echo ""
echo "Making a release for Bitbucket"
php src/bin/make-release.php "bitbucket"
echo ""
echo "Posting GitHub release to sjorso.com"
php src/bin/post-release.php "github" "${{ secrets.POST_RELEASE_SECRET }}"
echo "Posting GitLab release to sjorso.com"
php src/bin/post-release.php "gitlab" "${{ secrets.POST_RELEASE_SECRET }}"
echo "Posting Bitbucket release to sjorso.com"
php src/bin/post-release.php "bitbucket" "${{ secrets.POST_RELEASE_SECRET }}"
- name: Commit releases
uses: EndBug/add-and-commit@v9
with:
add: '.' # git add .
message: 'Update releases'
push: true
default_author: github_actor