Skip to content

Commit

Permalink
CI: fix notarize
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof committed Dec 5, 2023
1 parent e026c37 commit a9527ab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ jobs:
uses: actions/checkout@v4
- name: Fetch all git tags
run: git fetch --prune --unshallow --tags
- name: Set Version
if: ${{ env.VERSION == '' }}
run: |
export VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')-dev
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Download MassaStation Package
uses: actions/download-artifact@v3
with:
Expand All @@ -117,16 +122,11 @@ jobs:
run: sh macos/create_pkg.sh ${{ matrix.arch }} "${{ vars.APPLE_DEVELOPER_ID}}"
env:
VERSION: ${{ env.VERSION }}
- name: Set Version
if: ${{ env.VERSION == '' }}
run: |
export VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')-dev
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Notarise installer
run: |
ls
xcrun notarytool submit installer/massastation_${{ env.VERSION }}_${{ matrix.arch }}.pkg --wait --apple-id ${{ secrets.APPLE_ID }} --password ${{ secrets.APPLE_APP_PASSWORD }} --team-id ${{ secrets.APPLE_TEAM_ID }}
xcrun stapler staple installer/massastation_${{ env.VERSION }}_${{ matrix.arch }}.pkg
xcrun notarytool submit massastation_${{ env.VERSION }}_${{ matrix.arch }}.pkg --wait --apple-id ${{ secrets.APPLE_ID }} --password ${{ secrets.APPLE_APP_PASSWORD }} --team-id ${{ secrets.APPLE_TEAM_ID }}
xcrun stapler staple massastation_${{ env.VERSION }}_${{ matrix.arch }}.pkg
- name: Upload Package
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit a9527ab

Please sign in to comment.