Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mijorus committed Aug 19, 2024
1 parent a6b5fca commit 1cb4e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run release script
uses: actions/checkout@v3
id: tag
run: TAG_NAME=$(grep -o '<version>.*</version>' appinfo/info.xml | sed 's/<\/*version>//g') >> "$GITHUB_OUTPUT"
- name: Run release script
uses: actions/checkout@v3
run: ./release.sh
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
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 }} # Get upload URL from previous step
asset_path: ./release.tar.gz
asset_name: release.tar.gz
asset_content_type: application/gzip # Optional: Specify content type
- name: Publish release
uses: StuYarrow/publish-release@v1.1.2
- name: Publish release package
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}
tag_name: ${{ steps.create_release.outputs.TAG_NAME }}
files: release.tar.gz
4 changes: 1 addition & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ rm release.tar.gz
cd ..
tar -czf release.tar.gz rolls

rm -r rolls

openssl dgst -sha512 -sign ~/.nextcloud/certificates/rolls.key ./release.tar.gz | openssl base64 > release.sign
rm -r rolls

0 comments on commit 1cb4e58

Please sign in to comment.