Added PPM CI
This commit is contained in:
parent
c717f363ba
commit
eeabd2a513
|
@ -0,0 +1,37 @@
|
||||||
|
name: PPM Compile KimchiAPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Add repoistory for PHP 8.0
|
||||||
|
run: sudo add-apt-repository ppa:ondrej/php
|
||||||
|
- name: Install PHP 8.0
|
||||||
|
run: sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php8.0-tokenizer php8.0-fileinfo
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: intellivoid/ppm
|
||||||
|
ref: "production"
|
||||||
|
token: ${{ secrets.PPM_ACCESS_TOKEN }}
|
||||||
|
- name: Install PPM
|
||||||
|
run: sudo ./install
|
||||||
|
- name: Configuring PPM
|
||||||
|
run: sudo ppm --github-add-pat --alias="system" --token="${{ secrets.PPM_ACCESS_TOKEN }}"
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Make build directory
|
||||||
|
run: mkdir build
|
||||||
|
|
||||||
|
- name: Prepare KimchiAPI
|
||||||
|
run: ppm --generate-package="src/KimchiAPI"
|
||||||
|
- name: Compile KimchiAPI
|
||||||
|
run: ppm --no-intro --verbose --compile="src/KimchiAPI" --directory="build"
|
||||||
|
- name: Install KimchiAPI
|
||||||
|
run: sudo -H ppm --no-prompt --fix-conflict --verbose --install="build/net.intellivoid.kimchi_api.ppm"
|
|
@ -0,0 +1,49 @@
|
||||||
|
name: PPM Release KimchiAPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Add repoistory for PHP 8.0
|
||||||
|
run: sudo add-apt-repository ppa:ondrej/php
|
||||||
|
- name: Install PHP 8.0
|
||||||
|
run: sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php8.0-tokenizer php8.0-fileinfo
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: intellivoid/ppm
|
||||||
|
ref: "production"
|
||||||
|
token: ${{ secrets.PPM_ACCESS_TOKEN }}
|
||||||
|
- name: Install PPM
|
||||||
|
run: sudo ./install
|
||||||
|
- name: Configuring PPM
|
||||||
|
run: sudo ppm --github-add-pat --alias="system" --token="${{ secrets.PPM_ACCESS_TOKEN }}"
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Make build directory
|
||||||
|
run: mkdir build
|
||||||
|
|
||||||
|
- name: Prepare KimchiAPI
|
||||||
|
run: ppm --generate-package="src/KimchiAPI"
|
||||||
|
- name: Compile KimchiAPI
|
||||||
|
run: ppm --no-intro --verbose --compile="src/KimchiAPI" --directory="build"
|
||||||
|
- name: Install KimchiAPI
|
||||||
|
run: sudo -H ppm --no-prompt --fix-conflict --verbose --install="build/net.intellivoid.kimchi_api.ppm"
|
||||||
|
|
||||||
|
- name: Get Package Version
|
||||||
|
run: echo package_version=$(ppm --get-version="build/net.intellivoid.kimchi_api.ppm") >> $GITHUB_ENV
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: build/net.intellivoid.kimchi_api.ppm
|
||||||
|
name: "KimchiAPI v${{ env.package_version }}"
|
||||||
|
tag_name: "v${{ env.package_version }}"
|
||||||
|
body: "Compiled PPM package for KimchiAPI, version ${{ env.package_version }}"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue