Elgg 6.0.0-beta.1 #65
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: Create ZIP Release | |
on: | |
release: | |
types: [created, edited] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set ZIP filename | |
id: branch | |
run: | | |
echo RELEASE=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT | |
echo ZIP_FOLDER=elgg-${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT | |
echo ZIP_FILE=elgg-${GITHUB_REF#refs/tags/}.zip >> $GITHUB_OUTPUT | |
- name: Checkout Starter Project | |
uses: actions/checkout@v4 | |
with: | |
repository: Elgg/starter-project | |
ref: 6.x | |
path: ${{ steps.branch.outputs.ZIP_FOLDER }} | |
- name: Composer Install | |
# We need a double composer install in order to trigger the postinstall script (make symlinks to mods) | |
run: | | |
cd ${{ steps.branch.outputs.ZIP_FOLDER }} | |
composer require --no-update elgg/elgg:${{ steps.branch.outputs.RELEASE }} | |
composer install --no-dev --prefer-dist | |
composer install --no-dev --prefer-dist | |
- name: Make Zip ${{ steps.branch.outputs.ZIP_FILE }} | |
run: | | |
zip -r ${{ steps.branch.outputs.ZIP_FILE }} ${{ steps.branch.outputs.ZIP_FOLDER }} -x '*/.git/*' | |
- name: Upload Asset | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{ steps.branch.outputs.ZIP_FILE }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifactErrorsFailBuild: true | |
allowUpdates: true | |
omitBodyDuringUpdate: true | |
omitNameDuringUpdate: true | |
omitPrereleaseDuringUpdate: true |