Skip to content

Commit 47ab76c

Browse files
committed
🎉 Moved Travis releases builds to Github Actions 🎉
1 parent 7b97cd0 commit 47ab76c

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/build.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release Builds
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 7.1
19+
extensions: opcache, gd
20+
coverage: none
21+
22+
- name: Install Dependencies
23+
run: |
24+
sudo apt-get -y update -qq < /dev/null > /dev/null
25+
sudo apt-get -y install -qq git zip < /dev/null > /dev/null
26+
27+
- name: Retrieval of Builder Scripts
28+
run: |
29+
# Real Grav URL
30+
curl --silent -H "Authorization: token ${{ secrets.GLOBAL_TOKEN }}" -H "Accept: application/vnd.github.v3.raw" ${{ secrets.BUILD_SCRIPT_URL }} --output build-grav.sh
31+
32+
# Development Local URL
33+
# curl ${{ secrets.BUILD_SCRIPT_URL }} --output build-grav.sh
34+
35+
- name: Grav Builder
36+
run: |
37+
bash ./build-grav.sh
38+
39+
- name: Upload Grav Release Assets
40+
id: upload-release-asset
41+
uses: alexellis/[email protected]
42+
env:
43+
GITHUB_TOKEN: ${{ github.token }}
44+
with:
45+
asset_paths: '["./grav-dist/*.zip"]'

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ php:
66
- '7.4'
77
branches:
88
only:
9-
- master
109
- build_test
1110
notifications:
1211
email:

0 commit comments

Comments
 (0)