🎉 Moved Travis releases builds to Github Actions 🎉

This commit is contained in:
Djamil Legato 2020-12-05 16:53:14 -08:00
parent 7b97cd0cf1
commit 47ab76c7e3
No known key found for this signature in database
GPG Key ID: A44158E0E04E7A37
2 changed files with 45 additions and 1 deletions

45
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Release Builds
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.1
extensions: opcache, gd
coverage: none
- name: Install Dependencies
run: |
sudo apt-get -y update -qq < /dev/null > /dev/null
sudo apt-get -y install -qq git zip < /dev/null > /dev/null
- name: Retrieval of Builder Scripts
run: |
# Real Grav URL
curl --silent -H "Authorization: token ${{ secrets.GLOBAL_TOKEN }}" -H "Accept: application/vnd.github.v3.raw" ${{ secrets.BUILD_SCRIPT_URL }} --output build-grav.sh
# Development Local URL
# curl ${{ secrets.BUILD_SCRIPT_URL }} --output build-grav.sh
- name: Grav Builder
run: |
bash ./build-grav.sh
- name: Upload Grav Release Assets
id: upload-release-asset
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./grav-dist/*.zip"]'

View File

@ -6,7 +6,6 @@ php:
- '7.4'
branches:
only:
- master
- build_test
notifications:
email: