Skip to content

Commit

Permalink
Generate zip file during release (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsimoxx authored Feb 7, 2023
1 parent 4a4e20b commit b19ed78
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# Exclude the following when creating zip archive (git archive)
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
sitemap-cache/* export-ignore
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Generate Installable Plugin, and Upload as Release Asset
on:
release:
types: [published]
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Create artifact
run : |
git archive -o classicpress-seo.zip --prefix classicpress-seo/ HEAD
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: classicpress-seo
path: classicpress-seo.zip
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: classicpress-seo.zip application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b19ed78

Please sign in to comment.