Release v6.0.2 #36
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: Create Download on Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@master | |
- name: Set Tag env | |
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10} | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
- name: Test tag | |
run: echo ${{ env.RELEASE_VERSION }} | |
- name: Prepare folder | |
run: | | |
mkdir ./PayonePayment | |
cp -r src CHANGELOG* README.md composer.json ./PayonePayment/ | |
- name: Build the zip | |
uses: thedoctor0/[email protected] | |
with: | |
path: ./PayonePayment/ | |
filename: PayonePayment-${{ env.RELEASE_VERSION }}.zip | |
- name: Upload zip to release | |
uses: fnkr/github-action-ghr@v1 | |
env: | |
GHR_PATH: PayonePayment-${{ env.RELEASE_VERSION }}.zip | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |