|
1 | 1 | name: Release build
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - [push] |
5 |
| - # branches: |
6 |
| - # - master |
7 |
| - # tags: |
8 |
| - # - * |
9 |
| - # pull_request: |
10 |
| - # paths: |
11 |
| - # - .github/workflows/lambda-runner-binaries-syncer.yml |
12 |
| - # - "modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/**" |
| 4 | + push: |
| 5 | + tags: |
13 | 6 |
|
14 | 7 | jobs:
|
15 | 8 | release:
|
|
77 | 70 | asset_path: modules/${{ env.lambda_webhook_name }}/lambdas/${{ env.lambda_webhook_name }}/${{ env.lambda_webhook_name }}.zip
|
78 | 71 | asset_name: ${{ env.lambda_runners_name }}-${{ steps.tag_name.outputs.TAG }}.zip
|
79 | 72 | asset_content_type: application/zip
|
80 |
| - # release_draft: |
81 |
| - # name: Create Draft Release |
82 |
| - # needs: build |
83 |
| - # runs-on: ubuntu-latest |
84 |
| - # container: node:12 |
85 |
| - # if: startsWith(github.ref, 'refs/tags/') |
86 |
| - # steps: |
87 |
| - # - name: Create Release |
88 |
| - # uses: actions/create-release@latest |
89 |
| - # env: |
90 |
| - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
91 |
| - # with: |
92 |
| - # tag_name: ${{ github.ref }} |
93 |
| - # release_name: Release ${{ github.ref }} |
94 |
| - # draft: true |
95 |
| - # prerelease: true |
96 |
| - # - uses: actions/checkout@v2 |
97 |
| - # - name: Extract tag name |
98 |
| - # id: tag_name |
99 |
| - # run: echo ::set-output name=TAG::${GITHUB_REF##*/} |
100 |
| - # - uses: actions/download-artifact@v2 |
101 |
| - # with: |
102 |
| - # path: artifacts |
103 |
| - # - name: Create zip |
104 |
| - # run: | |
105 |
| - # apt update && apt install zip |
106 |
| - # cd dist && zip -r ../${lambda_name}.zip . |
107 |
| - # - name: Create Release |
108 |
| - # id: create_release |
109 |
| - # uses: actions/create-release@latest |
110 |
| - # env: |
111 |
| - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
112 |
| - # with: |
113 |
| - # tag_name: ${{ github.ref }} |
114 |
| - # release_name: Release ${{ github.ref }} |
115 |
| - # draft: true |
116 |
| - # prerelease: true |
117 |
| - # - name: Upload Release Asset |
118 |
| - # id: upload-release-asset |
119 |
| - # uses: actions/upload-release-asset@v1 |
120 |
| - # env: |
121 |
| - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
122 |
| - # with: |
123 |
| - # upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
124 |
| - # asset_path: ${{ env.lambda_name }}.zip |
125 |
| - # asset_name: ${{ env.lambda_name }}-${{ steps.tag_name.outputs.TAG }}.zip |
126 |
| - # asset_content_type: application/zip |
0 commit comments