Skip to content

Bump tecnickcom/tcpdf from 6.5.0 to 6.7.4 #10

Bump tecnickcom/tcpdf from 6.5.0 to 6.7.4

Bump tecnickcom/tcpdf from 6.5.0 to 6.7.4 #10

Workflow file for this run

name: "Release"
on:
push:
tags: [ 'v*' ] # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
linting:
name: "Release a new ZIP"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2" # https://github.com/shivammathur/setup-php
with:
php-version: "7.3"
extensions: "mbstring, xml, ctype, iconv, intl, gd"
- name: "Get composer cache directory"
id: "composercache"
run: "echo '::set-output name=dir::$(composer config cache-files-dir)'"
- name: "Cache composer dependencies"
uses: "actions/cache@v4"
with:
path: "${{ steps.composercache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "${{ runner.os }}-composer-"
- name: "Validate composer"
run: "composer validate"
- name: "Install Composer dependencies"
run: "composer install --prefer-dist --no-progress --optimize-autoloader"
# Zip the module
- name: "Make zip"
run: "make"
# Make a release from the tag
- name: "Create Release"
id: "create_release"
uses: "actions/create-release@v1"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # This token is provided by Actions, you do not need to create your own token
with:
tag_name: "${{ github.ref }}"
release_name: "Release ${{ github.ref }}"
# Upload the zip to the release
- name: "Upload Release Asset"
id: "upload-release-asset"
uses: "actions/upload-release-asset@v1"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
upload_url: "${{ steps.create_release.outputs.upload_url }}" # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: "./build/cryptwerk.zip"
asset_name: "cryptwerk.zip"
asset_content_type: "application/zip"