mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-08-26 23:20:57 +00:00
Release management using gh cli (#615)
This commit is contained in:
parent
8dbf992cce
commit
8adb4423ac
16
.github/templates/release.md
vendored
Normal file
16
.github/templates/release.md
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Update description
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
|
||||||
|
## Minimum macOS Version
|
||||||
|
|
||||||
|
|
||||||
|
## Build
|
||||||
|
https://github.com/maxgoedjen/secretive/actions/runs/RUN_ID
|
||||||
|
|
||||||
|
## Attestation
|
||||||
|
https://github.com/maxgoedjen/secretive/actions/runs/RUN_ID
|
44
.github/workflows/release.yml
vendored
44
.github/workflows/release.yml
vendored
@ -65,52 +65,18 @@ jobs:
|
|||||||
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
|
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
|
||||||
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
|
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
|
||||||
run: xcrun notarytool submit --key ~/.private_keys/AuthKey_$APPLE_API_KEY_ID.p8 --key-id $APPLE_API_KEY_ID --issuer $APPLE_API_ISSUER Secretive.zip
|
run: xcrun notarytool submit --key ~/.private_keys/AuthKey_$APPLE_API_KEY_ID.p8 --key-id $APPLE_API_KEY_ID --issuer $APPLE_API_ISSUER Secretive.zip
|
||||||
- name: Document SHAs
|
|
||||||
run: |
|
|
||||||
echo "sha-512:"
|
|
||||||
shasum -a 512 Secretive.zip
|
|
||||||
shasum -a 512 Xcode_Archive.zip
|
|
||||||
echo "sha-256:"
|
|
||||||
shasum -a 256 Secretive.zip
|
|
||||||
shasum -a 256 Xcode_Archive.zip
|
|
||||||
- name: Attest
|
- name: Attest
|
||||||
uses: actions/attest-build-provenance@v2
|
uses: actions/attest-build-provenance@v2
|
||||||
with:
|
with:
|
||||||
subject-path: 'Secretive.zip, Xcode_Archive.zip'
|
subject-path: 'Secretive.zip, Xcode_Archive.zip'
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
run: |
|
||||||
uses: actions/create-release@v1
|
gh release create $TAG_NAME -d -F templates/release.md
|
||||||
|
gh release upload Secretive.zip
|
||||||
|
gh release upload Xcode_Archive.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
TAG_NAME: ${{ github.ref }}
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: ${{ github.ref }}
|
|
||||||
body: |
|
|
||||||
Update description
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
|
|
||||||
## Minimum macOS Version
|
|
||||||
|
|
||||||
|
|
||||||
## Build
|
|
||||||
https://github.com/maxgoedjen/secretive/actions/runs/${{ github.run_id }}
|
|
||||||
draft: true
|
|
||||||
prerelease: false
|
|
||||||
- name: Upload App to Release
|
|
||||||
id: upload-release-asset-app
|
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./Secretive.zip
|
|
||||||
asset_name: Secretive.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
- name: Upload App to Artifacts
|
- name: Upload App to Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user