mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
ci: only sign on master
This commit is contained in:
6
.github/workflows/rust.yml
vendored
6
.github/workflows/rust.yml
vendored
@@ -139,7 +139,7 @@ jobs:
|
|||||||
cp "target/release/pumpkin$EXT" "dist/pumpkin-${{ runner.arch }}-${{ runner.os }}$EXT"
|
cp "target/release/pumpkin$EXT" "dist/pumpkin-${{ runner.arch }}-${{ runner.os }}$EXT"
|
||||||
|
|
||||||
- name: Upload unsigned executable for SignPath (Windows only)
|
- name: Upload unsigned executable for SignPath (Windows only)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows' && github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
id: upload_unsigned
|
id: upload_unsigned
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
@@ -148,7 +148,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
- name: Submit SignPath signing request (Windows only)
|
- name: Submit SignPath signing request (Windows only)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows' && github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
uses: signpath/github-action-submit-signing-request@v2
|
uses: signpath/github-action-submit-signing-request@v2
|
||||||
with:
|
with:
|
||||||
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
||||||
@@ -160,7 +160,7 @@ jobs:
|
|||||||
output-artifact-directory: dist/signed/
|
output-artifact-directory: dist/signed/
|
||||||
|
|
||||||
- name: Overwrite with signed version (Windows only)
|
- name: Overwrite with signed version (Windows only)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows' && github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cp dist/signed/* dist/
|
cp dist/signed/* dist/
|
||||||
|
|||||||
Reference in New Issue
Block a user