Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 3c87b33

Browse files
committed
NeiroNetwork/PluginTemplate からファイルをコピー
1 parent e3b0368 commit 3c87b33

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: build
22

33
on:
44
push:
5-
tags:
6-
- '*'
5+
tags: '*'
76

87
jobs:
98
build:
@@ -12,32 +11,12 @@ jobs:
1211

1312
steps:
1413
- uses: actions/checkout@v2
15-
with:
16-
path: plugin
17-
18-
- name: Download pmmp files
19-
run: |
20-
ID=`curl -s 'https://dev.azure.com/pocketmine/PHP-Builds/_apis/build/builds?definitions=3&resultFilter=succeeded&$top=1&branchName=refs/heads/master&api-version=5.0' | jq '.value | .[0].id'`
21-
curl -JLOs "https://dev.azure.com/pocketmine/PHP-Builds/_apis/build/builds/$ID/artifacts?artifactName=Linux&api-version=6.0&%24format=zip" &
22-
curl -JLOs "https://raw.githubusercontent.com/pmmp/DevTools/master/src/ConsoleScript.php" &
23-
wait
24-
25-
- name: Prepare php binary
26-
run: |
27-
echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH
28-
unzip -q Linux.zip && tar -xzf Linux/PHP_Linux-x86_64.tar.gz
29-
EXTENSION_DIR=$(find "$(pwd)/bin" -name *debug-zts*)
30-
echo "extension_dir=\"$EXTENSION_DIR\"" >> bin/php7/bin/php.ini
31-
sed -i "s/date.timezone=.*/date.timezone=Asia\\/Tokyo/" bin/php7/bin/php.ini
3214

3315
- name: Build plugin
3416
run: |
35-
php -dphar.readonly=0 ConsoleScript.php --make plugin --out ${{ github.event.repository.name }}.phar
17+
curl -sLo .php https://raw.githubusercontent.com/pmmp/DevTools/master/src/ConsoleScript.php
18+
php -dphar.readonly=0 .php --make ./ --out ${{ github.event.repository.name }}.phar
3619
37-
- name: Create github release
38-
uses: softprops/action-gh-release@v1
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: softprops/action-gh-release@v0.1.14
4121
with:
42-
files: |
43-
${{ github.event.repository.name }}.phar
22+
files: ${{ github.event.repository.name }}.phar

0 commit comments

Comments
 (0)