Bump actions/upload-artifact from 3.1.0 to 4.0.0 #204
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Checkout PharBuilder | |
uses: actions/checkout@v3 | |
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 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/NGPlots.phar | |
echo Injecting Virions... | |
./bin/php7/bin/php -dphar.readonly=0 PharBuilder/libasynql.phar PharBuilder/NGPlots.phar | |
./bin/php7/bin/php -dphar.readonly=0 PharBuilder/await-generator.phar PharBuilder/NGPlots.phar | |
echo Build completed! | |
- name: Upload | |
uses: actions/[email protected] | |
with: | |
name: NGPlots | |
path: PharBuilder/NGPlots.phar |