Zip and Attach Release #2
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: Zip and Attach Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
zip-and-attach: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code from the repo | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Zip the repository contents | |
- name: Zip repo contents | |
run: zip -r woocommerce-shipstream-sync.zip . -x '.git/*' '.github/*' | |
# Upload the zip file as an artifact | |
- name: Attach zip to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: woocommerce-shipstream-sync.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |