Skip to content

Commit

Permalink
fix: upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRuen committed Jul 1, 2024
1 parent 6f06d1c commit a0dda38
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,15 @@ jobs:
- name: Prepare zip folder
run: |
mkdir cidgravitygateway
rsync -av --progress . ./cidgravitygateway --exclude node_modules --exclude .git --exclude cidgravitygateway
- name: Archive the artifacts
run: |
rsync -av --progress . ./cidgravitygateway --exclude node_modules --exclude .git --exclude cidgravitygateway --exclude .github --exclude .vscode
zip -r nextcloud-app.zip cidgravitygateway
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
files: nextcloud-app.zip
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nextcloud-app.zip
asset_name: nextcloud-app.zip
asset_content_type: application/zip

0 comments on commit a0dda38

Please sign in to comment.