Skip to content

Release

Release #12

Workflow file for this run

---
name: Release
on:
# Triggers the workflow on push or pull request events
release:
tags:
- 'v*'
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Client_build:
name: Client build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# # Setup tmate session
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Create zip file
run: |
cd .. && \
zip -r /tmp/student-discount-for-woocommerce.zip student-discount-for-woocommerce -x \
*\.git* \
*/vendor/paragonie/random_compat/build-phar.sh \
@
- name: Show what we are shipping
run: |
unzip -t /tmp/student-discount-for-woocommerce.zip
- name: Create Artifact
uses: actions/upload-artifact@v4
with:
name: student-discount-for-woocommerce
path: /tmp/student-discount-for-woocommerce.zip
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: /tmp/student-discount-for-woocommerce.zip