Skip to content

Commit f9f6158

Browse files
committed
Experiment with dist
1 parent 919e27e commit f9f6158

1 file changed

Lines changed: 41 additions & 43 deletions

File tree

.github/workflows/lambda-runner-binaries-syncer.yml

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,50 @@ jobs:
2424
- name: Run linter
2525
run: yarn lint
2626
- name: Build distribution
27-
run: yarn dist
27+
run: yarn build
2828
- name: Upload distribution
2929
# if: startsWith(github.ref, 'refs/tags/')
3030
uses: actions/upload-artifact@v2
3131
with:
3232
name: dist
3333
path: dist
34-
35-
release_draft:
36-
name: Create Draft Release
37-
needs: build
38-
runs-on: ubuntu-latest
39-
container: node:12
40-
# if: startsWith(github.ref, 'refs/tags/')
41-
42-
steps:
43-
- uses: actions/checkout@v2
44-
- name: Extract tag name
45-
id: tag_name
46-
run: echo ::set-output name=TAG::${GITHUB_REF##*/}
47-
- uses: actions/download-artifact@v2
48-
with:
49-
name: dist
50-
path: dist
51-
- name: Create zip
52-
run: |
53-
apt update && apt install zip
54-
cd dist
55-
zip -r ../dist.zip ${lambda_name}.zip
56-
# - name: Create Release
57-
# id: create_release
58-
# uses: actions/create-release@latest
59-
# env:
60-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
61-
# with:
62-
# tag_name: ${{ github.ref }}
63-
# release_name: Release ${{ github.ref }}
64-
# draft: true
65-
# prerelease: true
66-
# - name: Upload Release Asset
67-
# id: upload-release-asset
68-
# uses: actions/upload-release-asset@v1
69-
# env:
70-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71-
# with:
72-
# 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
73-
# asset_path: ./webhook.zip
74-
# asset_name: parser-${{ steps.tag_name.outputs.TAG }}.zip
75-
# asset_content_type: application/zip
34+
# release_draft:
35+
# name: Create Draft Release
36+
# needs: build
37+
# runs-on: ubuntu-latest
38+
# container: node:12
39+
# # if: startsWith(github.ref, 'refs/tags/')
40+
# steps:
41+
# - uses: actions/checkout@v2
42+
# - name: Extract tag name
43+
# id: tag_name
44+
# run: echo ::set-output name=TAG::${GITHUB_REF##*/}
45+
# - uses: actions/download-artifact@v2
46+
# with:
47+
# name: dist
48+
# path: dist
49+
# - name: Create zip
50+
# run: |
51+
# apt update && apt install zip
52+
# cd dist
53+
# zip -r ../dist.zip ${lambda_name}.zip
54+
# - name: Create Release
55+
# id: create_release
56+
# uses: actions/create-release@latest
57+
# env:
58+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
59+
# with:
60+
# tag_name: ${{ github.ref }}
61+
# release_name: Release ${{ github.ref }}
62+
# draft: true
63+
# prerelease: true
64+
# - name: Upload Release Asset
65+
# id: upload-release-asset
66+
# uses: actions/upload-release-asset@v1
67+
# env:
68+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
# with:
70+
# 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
71+
# asset_path: ./webhook.zip
72+
# asset_name: parser-${{ steps.tag_name.outputs.TAG }}.zip
73+
# asset_content_type: application/zip

0 commit comments

Comments
 (0)