Release #47
Workflow file for this run
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: Release | |
run-name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Get composer cache directory | |
- id: get-composer-cache-directory | |
name: Get Composer caches directory path | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
shell: bash | |
# Mount composer cache directory | |
- id: mount-composer-cache-directory | |
name: Mount composer cache directory | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.get-composer-cache-directory.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
# Mount composer cache directory | |
- id: mount-npm-cache-directory | |
name: Mount npm cache directory | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-npm- | |
- name: Zip code | |
run: | | |
chmod 777 ./bin/zip.sh | |
sudo bash ./bin/zip.sh | |
shell: bash | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifactErrorsFailBuild: true | |
allowUpdates: true | |
artifacts: "./build/reepay-checkout-gateway.zip" |