Skip to content

Commit

Permalink
chore: Update push-deploy workflow to create a zip archive and releas…
Browse files Browse the repository at this point in the history
…e it
  • Loading branch information
Levdbas committed Sep 5, 2024
1 parent a6dd6e0 commit c608361
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ jobs:
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create zip archive
run: |
git archive --format=zip HEAD -o ${{ github.event.repository.name }}.zip
mkdir ${{ github.event.repository.name }}
unzip ${{ github.event.repository.name }}.zip -d ${{ github.event.repository.name }}
rm ${{ github.event.repository.name }}.zip
cp -r dist ${{ github.event.repository.name }}
zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
files: |
${{ github.event.repository.name }}.zip

0 comments on commit c608361

Please # to comment.