Skip to content

Commit

Permalink
fixed signing
Browse files Browse the repository at this point in the history
Signed-off-by: aspel <[email protected]>
  • Loading branch information
aspel committed Jun 15, 2024
1 parent f20d953 commit eacb583
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
run: |
time=nightly-$(date +'%Y/%m/%d')
echo "time=${time}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4

- run: make

- name: Package tar.xz archive
run: tar -cf - -C ${GITHUB_WORKSPACE}/linux $(ls -A ${GITHUB_WORKSPACE}"/linux") | xz -c > PathOfBuilding.linux.amd64.tar.xz

- name: Cheking GUI
env:
IMGUR_CLIENT_ID: ${{ secrets.IMGUR_CLIENT_ID }}
Expand All @@ -39,7 +43,9 @@ jobs:
-d "{\"body\":\"![Screenshot Linux](${IMG_URL})\n${GITHUB_SHA} : Linux amd64\"}"
popd
echo $IMG_URL
- run: tar -tvf PathOfBuilding.linux.amd64.tar.xz

- name: Update release tag
if: github.ref == 'refs/heads/master'
run: |
Expand All @@ -49,6 +55,7 @@ jobs:
git remote add gh https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git
git push -f gh PathOfBuilding
git remote remove gh
- name: Upload Linux artifacts into Github
if: github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1
Expand All @@ -58,19 +65,28 @@ jobs:
allowUpdates: true
tag: PathOfBuilding
body: "${{steps.time.outputs.time}}"

build-macos-amd64:
runs-on: macos-13
steps:
- id: time
run: |
time=nightly-$(date +'%Y/%m/%d')
echo "time=${time}" >> $GITHUB_OUTPUT
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- run: brew install make

- run: make

- name: Package tar.xz archive
run: tar --exclude='PathOfBuilding.app/Contents/MacOS/spec' -cf - PathOfBuilding.app | xz -c > PathOfBuilding.darwin.amd64.tar.xz
run: |
rm -rf PathOfBuilding.app/Contents/MacOS/spec
codesign --force --deep --sign - PathOfBuilding.app
tar -cf - PathOfBuilding.app | xz -c > PathOfBuilding.darwin.amd64.tar.xz
- name: Cheking GUI
env:
IMGUR_CLIENT_ID: ${{ secrets.IMGUR_CLIENT_ID }}
Expand All @@ -87,7 +103,9 @@ jobs:
https://api.github.com/repos/aspel/pobfrontend/issues/${pull_number}/comments \
-d "{\"body\":\"![Screenshot MacOS](${IMG_URL})\n${GITHUB_SHA} : MacOS amd64\"}"
echo $IMG_URL
- run: tar -tvf PathOfBuilding.darwin.amd64.tar.xz

- name: Upload MacOS artifacts into Github
if: github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1
Expand All @@ -105,12 +123,20 @@ jobs:
run: |
time=nightly-$(date +'%Y/%m/%d')
echo "time=${time}" >> $GITHUB_OUTPUT
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- run: brew install make

- run: make

- name: Package tar.xz archive
run: tar --exclude='PathOfBuilding.app/Contents/MacOS/spec' -cf - PathOfBuilding.app | xz -c > PathOfBuilding.darwin.arm64.tar.xz
run: |
rm -rf PathOfBuilding.app/Contents/MacOS/spec
codesign --force --deep --sign - PathOfBuilding.app
tar -cf - PathOfBuilding.app | xz -c > PathOfBuilding.darwin.arm64.tar.xz
- name: Cheking GUI
env:
IMGUR_CLIENT_ID: ${{ secrets.IMGUR_CLIENT_ID }}
Expand All @@ -127,7 +153,9 @@ jobs:
https://api.github.com/repos/aspel/pobfrontend/issues/${pull_number}/comments \
-d "{\"body\":\"![Screenshot MacOS](${IMG_URL})\n${GITHUB_SHA} : MacOS arm64\"}"
echo $IMG_URL
- run: tar -tvf PathOfBuilding.darwin.arm64.tar.xz

- name: Upload MacOS artifacts into Github
if: github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit eacb583

Please sign in to comment.