-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
these came in clutch today so I'm not too hasty to get rid of them.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,37 @@ jobs: | |
special-release: ${{ matrix.special-release || 'none' }} | ||
pm-preview: ${{ matrix.pm-preview || false }} | ||
secrets: inherit | ||
|
||
publish-archive-release: | ||
name: Publish archive release | ||
needs: [all-builds] | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.ref_name == 'stable' && github.ref_type == 'branch' && !contains(github.event.head_commit.message, '[no release]') }} | ||
|
||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: ${{ github.workspace }} | ||
|
||
- name: Generate release notes | ||
run: | | ||
echo "Built by: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> changelog.md | ||
echo "Build number: ${{ github.run_number }}" >> changelog.md | ||
echo -e "\n\n\n" >> changelog.md | ||
echo ":information_source: **Linux/MacOS users**: Please see [this page](https://doc.pmmp.io/en/rtfd/faq/installation/opcache.so.html) to fix extension loading errors. Also, check out the [PocketMine-MP Linux/MacOS installer](https://doc.pmmp.io/en/rtfd/installation/get-dot-pmmp-dot-io.html)." >> changelog.md | ||
echo ":warning: **Windows users**: Don't forget to install [Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe) or the binary will not work!" >> changelog.md | ||
echo -e "\n\n\n" >> changelog.md | ||
- name: Create release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: | | ||
${{ github.workspace }}/PHP-*-Linux-PM*/*.tar.gz | ||
${{ github.workspace }}/PHP-*-MacOS-*-PM*/*.tar.gz | ||
${{ github.workspace }}/PHP-*-Windows-PM*/*.zip | ||
name: PHP (Build ${{ github.run_number }}) - Archive | ||
tag: php-build-${{ github.run_number }} | ||
commit: ${{ github.sha }} | ||
allowUpdates: false | ||
bodyFile: ${{ github.workspace }}/changelog.md |