Add VilniusPHP 0x91 event #111
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: "HTML to artifacts" | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download PHP docker container | |
run: docker pull php:5.6 | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Build HTML (along with same PHP Extension fixes) | |
run: docker run -v $(pwd):/code -w /code -e TZ='UTC' php:5.6 bash -c "echo 'date.timezone=Europe/Vilnius' > /usr/local/etc/php/conf.d/timezone.ini && apt-get update && apt-get install -y libzip-dev procps g++ libcurl4-gnutls-dev git wget gzip unzip && docker-php-ext-install zip && make" | |
- name: Sanitise before storing artifacts | |
run: rm -Rf public_html/.git | |
if: always() | |
- name: Store generated HTML | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: html | |
path: public_html |