-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.79 KB
/
net.intellivoid.acm2.ppm_release.yml
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
47
48
49
name: PPM Release Advanced Configuration Manager v2
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 Advanced Configuration Manager v2
run: ppm --generate-package="src/acm2"
- name: Compile Advanced Configuration Manager v2
run: ppm --no-intro --verbose --compile="src/acm2" --directory="build"
- name: Install Advanced Configuration Manager v2
run: sudo -H ppm --no-prompt --fix-conflict --verbose --install="build/net.intellivoid.acm2.ppm"
- name: Get Package Version
run: echo package_version=$(ppm --get-version="build/net.intellivoid.acm2.ppm") >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: build/net.intellivoid.acm2.ppm
name: "Advanced Configuration Manager v2 v${{ env.package_version }}"
tag_name: "v${{ env.package_version }}"
body: "Compiled PPM package for Advanced Configuration Manager v2, version ${{ env.package_version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}