Skip to content

Bump actions/upload-artifact from 3 to 4 #137

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #137

Workflow file for this run

name: Build
on: push
jobs:
build:
name: Phar building
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[Build]')"
steps:
- name: Startup
uses: actions/checkout@v4
- name: Checkout PharBuilder
uses: actions/checkout@v4
with:
repository: NetherGamesMC/PharBuilder
token: ${{ secrets.ng_token }}
path: PharBuilder
ref: pm5
- name: Download PHP Release
uses: dsaltares/[email protected]
with:
file: Linux.zip
repo: NetherGamesMC/php-build-scripts
version: "tags/8.2-pm5"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
- name: Download Composer
run: curl -o ./bin/composer.phar "https://getcomposer.org/composer-stable.phar"
- name: Install Composer dependencies
run: |
./bin/php7/bin/php ./bin/composer.phar install --prefer-dist --no-interaction --no-dev
- name: Download pharbuilder-rs
uses: dsaltares/[email protected]
with:
file: pharbuilder
repo: NetherGamesMC/pharbuilder-rs
token: ${{ secrets.ng_token }}
- name: Build
run: |
echo Building...
chmod +x pharbuilder
./pharbuilder -i . -o PharBuilder/ProxyTransport.phar
echo Build completed!
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ProxyTransport
path: PharBuilder/ProxyTransport.phar