Skip to content

Commit

Permalink
simplify packaging (#61)
Browse files Browse the repository at this point in the history
* simplify packaging

* Set proper folder level in package
  • Loading branch information
JoerivanEngelen authored Oct 11, 2023
1 parent 12ba2af commit 36f6f25
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,26 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Build
- name: Copy plugin to directory for packaging
run: |
rm -f imodqgis.zip
cd imodqgis
git archive --prefix=imodqgis/ -o ../imodqgis.zip HEAD
rm -rf imodqgis_packaged
mkdir -m 755 imodqgis_packaged
cp -R imodqgis imodqgis_packaged/imodqgis
shell: bash


- name: Upload imodqgis to Github artifact
if: always()
uses: actions/upload-artifact@v3
with:
path: imodqgis.zip
name: imodqgis_${{ github.sha }}.zip
path: imodqgis_packaged
name: imodqgis_${{ github.sha }}

- name: Upload imodqgis to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: imodqgis.zip
file: imodqgis_packaged
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Expand Down

0 comments on commit 36f6f25

Please sign in to comment.