forked from wallabag/wallabag
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: "Upload release package"
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
php:
|
|
- "7.4"
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v3"
|
|
|
|
- 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 }}
|
|
|
|
- name: Create the package
|
|
run: make release VERSION=${{ github.event.release.tag_name }}
|
|
|
|
- name: Upload the package to the release
|
|
uses: pierrotdelalune/Form_Data_HTTP_POST_Action@main
|
|
with:
|
|
url: ${{ github.event.release.upload_url }}
|
|
headers: "{\"Authorization\": \"token ${{ secrets.GITEA_TOKEN }}\"}"
|
|
file: /tmp/wllbg-release/wallabag-${{ github.event.release.tag_name }}.tar.gz
|
|
name: wallabag-${{ github.event.release.tag_name }}.tar.gz
|