mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-16 17:46:14 -08:00
ci: add SignPath test signing workflow (#2549)
* ci: add SignPath test signing workflow * ci: preserve existing workflow permissions --------- Co-authored-by: Your Name <you@example.com>
This commit is contained in:
1 parent
f26c2aa147
commit
fe764ce45c
1 file changed
+42
@@ -1,6 +1,7 @@
|
|||||||
name: EasyTier Core
|
name: EasyTier Core
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "develop", "main", "releases/**" ]
|
branches: [ "develop", "main", "releases/**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -261,6 +262,47 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
./artifacts/*
|
./artifacts/*
|
||||||
|
|
||||||
|
- name: Prepare SignPath test artifact
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.TARGET, 'windows') }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ./signpath-artifacts
|
||||||
|
cp \
|
||||||
|
./artifacts/easytier-core.exe \
|
||||||
|
./artifacts/easytier-cli.exe \
|
||||||
|
./artifacts/easytier-web.exe \
|
||||||
|
./artifacts/easytier-web-embed.exe \
|
||||||
|
./signpath-artifacts/
|
||||||
|
|
||||||
|
- name: Upload unsigned SignPath test artifact
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.TARGET, 'windows') }}
|
||||||
|
id: signpath-upload
|
||||||
|
uses: actions/upload-artifact@v5
|
||||||
|
with:
|
||||||
|
name: signpath-unsigned-${{ matrix.ARTIFACT_NAME }}
|
||||||
|
path: ./signpath-artifacts/*
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Submit SignPath test-signing request
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.TARGET, 'windows') }}
|
||||||
|
uses: signpath/github-action-submit-signing-request@v2
|
||||||
|
with:
|
||||||
|
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
|
||||||
|
organization-id: 368cf38d-86d5-4bfe-a1fa-82a50dce7e9f
|
||||||
|
project-slug: EasyTier
|
||||||
|
signing-policy-slug: test-signing
|
||||||
|
artifact-configuration-slug: initial
|
||||||
|
github-artifact-id: ${{ steps.signpath-upload.outputs.artifact-id }}
|
||||||
|
wait-for-completion: true
|
||||||
|
output-artifact-directory: ./signpath-signed-artifacts
|
||||||
|
|
||||||
|
- name: Upload signed SignPath test artifact
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.TARGET, 'windows') }}
|
||||||
|
uses: actions/upload-artifact@v5
|
||||||
|
with:
|
||||||
|
name: signpath-signed-${{ matrix.ARTIFACT_NAME }}
|
||||||
|
path: ./signpath-signed-artifacts/*
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
build_magisk:
|
build_magisk:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ pre_job, build_web, build ]
|
needs: [ pre_job, build_web, build ]
|
||||||
|
|||||||
Reference in new issue
Block a user