|
56 | 56 | asset_path: ./composer.phar
|
57 | 57 | asset_name: composer.phar
|
58 | 58 | asset_content_type: application/octet-stream
|
59 |
| - |
60 |
| - - name: Configure GPG key and sign phar |
61 |
| - run: | |
62 |
| - mkdir -p ~/.gnupg/ |
63 |
| - chmod 0700 ~/.gnupg/ |
64 |
| - echo "$GPG_SIGNING_KEY" > ~/.gnupg/private.key |
65 |
| - gpg --import ~/.gnupg/private.key |
66 |
| - gpg -u [email protected] --detach-sign --output composer.phar.asc composer.phar |
67 |
| - env: |
68 |
| - GPG_SIGNING_KEY: | |
69 |
| - ${{ secrets.GPG_KEY_161DFBE342889F01DDAC4E61CBB3D576F2A0946F }} |
70 |
| -
|
71 |
| - - name: Upload phar signature |
72 |
| - uses: actions/upload-release-asset@v1 |
73 |
| - env: |
74 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
75 |
| - with: |
76 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
77 |
| - asset_path: ./composer.phar.asc |
78 |
| - asset_name: composer.phar.asc |
79 |
| - asset_content_type: application/octet-stream |
80 |
| - |
81 |
| - # This step requires a secret token with `pull` access to composer/docker. The default |
82 |
| - # secrets.GITHUB_TOKEN is scoped to this repository only which is not sufficient. |
83 |
| - - name: "Open issue @ Docker repository" |
84 |
| - uses: actions/github-script@v2 |
85 |
| - with: |
86 |
| - github-token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} |
87 |
| - script: | |
88 |
| - // github.ref value looks like 'refs/tags/TAG', cleanup |
89 |
| - const tag = "${{ github.ref }}".replace(/refs\/tags\//, ''); |
90 |
| - // create new issue on Docker repository |
91 |
| - github.issues.create({ |
92 |
| - owner: "${{ github.repository_owner }}", |
93 |
| - repo: "docker", |
94 |
| - title: `New Composer tag: ${ tag }`, |
95 |
| - body: `https://github.com/${{ github.repository }}/releases/tag/${ tag }`, |
96 |
| - }); |
0 commit comments