Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP tools: github actions: build full .zip on push and upload it as a workflow artifact #9

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/build-zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build full .zip
on: [push]
jobs:
build-zip:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: gd, xml, curl, mbstring, intl, gettext
tools: composer:v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Gettext
run: sudo apt-get install gettext
- name: Build full .zip
run: make release_zip
- name: Extract full .zip # workaround for https://github.com/actions/upload-artifact/issues/39, https://github.com/actions/upload-artifact/issues/248
run: mkdir Shaarli && unzip -d Shaarli shaarli-*-full.zip
- name: Upload full .zip as workflow artifact
uses: actions/upload-artifact@v3
with:
name: shaarli-full.zip
path: Shaarli/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ composer_dependencies_dev: clean
# These targets produce similar archives, featuring 3rd-party dependencies
# to ease deployment on shared hosting.
##
ARCHIVE_VERSION := shaarli-$$(git describe)-full
ARCHIVE_VERSION := shaarli-$$(git describe || git rev-parse --short HEAD)-full
ARCHIVE_PREFIX=Shaarli/

release_archive: release_tar release_zip
Expand Down