Skip to content

Commit

Permalink
Bring back archival builds
Browse files Browse the repository at this point in the history
these came in clutch today so I'm not too hasty to get rid of them.
  • Loading branch information
dktapps committed Nov 27, 2024
1 parent cbe9380 commit 0b677a4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/release-action@v1.14.0
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

0 comments on commit 0b677a4

Please sign in to comment.