Skip to content

Commit 7f21ef2

Browse files
committed
Refactor to have predictive names
1 parent 38d7c57 commit 7f21ef2

File tree

1 file changed

+2
-56
lines changed

1 file changed

+2
-56
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
name: Release build
22

33
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:
136

147
jobs:
158
release:
@@ -77,50 +70,3 @@ jobs:
7770
asset_path: modules/${{ env.lambda_webhook_name }}/lambdas/${{ env.lambda_webhook_name }}/${{ env.lambda_webhook_name }}.zip
7871
asset_name: ${{ env.lambda_runners_name }}-${{ steps.tag_name.outputs.TAG }}.zip
7972
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

Comments
 (0)