2022-06-09 09:30:14 +00:00
|
|
|
name: "Upload release package"
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
php:
|
|
|
|
- "7.4"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
2023-09-11 02:30:18 +00:00
|
|
|
uses: "actions/checkout@v4"
|
2022-06-09 09:30:14 +00:00
|
|
|
|
|
|
|
- name: "Install PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
coverage: "none"
|
|
|
|
php-version: "${{ matrix.php }}"
|
|
|
|
tools: pecl, composer:2.2
|
|
|
|
extensions: pdo, pdo_mysql, pdo_sqlite, pdo_pgsql, curl, imagick, pgsql, gd, tidy
|
|
|
|
ini-values: "date.timezone=Europe/Paris"
|
|
|
|
env:
|
|
|
|
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2023-09-25 20:41:20 +00:00
|
|
|
- name: "Install Node"
|
2023-10-30 03:31:38 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-09-25 20:41:20 +00:00
|
|
|
with:
|
|
|
|
node-version-file: ".nvmrc"
|
|
|
|
cache: "yarn"
|
|
|
|
|
2022-06-09 09:30:14 +00:00
|
|
|
- name: Create the package
|
|
|
|
run: make release VERSION=${{ github.event.release.tag_name }}
|
|
|
|
|
|
|
|
- name: Upload the package to the release
|
|
|
|
uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: /tmp/wllbg-release/wallabag-${{ github.event.release.tag_name }}.tar.gz
|