Skip to content

Commit 123d7d8

Browse files
committed
Experiment with dist
1 parent 42e027e commit 123d7d8

File tree

1 file changed

+21
-48
lines changed

1 file changed

+21
-48
lines changed

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

Lines changed: 21 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,6 @@ jobs:
2626
run: yarn lint
2727
- name: Build distribution
2828
run: yarn build
29-
- name: Dump GitHub context
30-
env:
31-
GITHUB_CONTEXT: ${{ toJson(github) }}
32-
run: echo "$GITHUB_CONTEXT"
33-
- name: Dump job context
34-
env:
35-
JOB_CONTEXT: ${{ toJson(job) }}
36-
run: echo "$JOB_CONTEXT"
37-
- name: Dump steps context
38-
env:
39-
STEPS_CONTEXT: ${{ toJson(steps) }}
40-
run: echo "$STEPS_CONTEXT"
41-
- name: Dump runner context
42-
env:
43-
RUNNER_CONTEXT: ${{ toJson(runner) }}
44-
run: echo "$RUNNER_CONTEXT"
45-
- name: Dump strategy context
46-
env:
47-
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
48-
run: echo "$STRATEGY_CONTEXT"
49-
- name: Dump matrix context
50-
env:
51-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
52-
run: echo "$MATRIX_CONTEXT"
5329
- name: Upload distribution
5430
# if: startsWith(github.ref, 'refs/tags/')
5531
uses: actions/upload-artifact@v1
@@ -75,28 +51,25 @@ jobs:
7551
path: dist
7652
- name: Create zip
7753
run: |
78-
ls -la
7954
apt update && apt install zip
80-
cd dist
81-
ls -la
82-
zip -r ../${lambda_name}.zip .
83-
# - name: Create Release
84-
# id: create_release
85-
# uses: actions/create-release@latest
86-
# env:
87-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
88-
# with:
89-
# tag_name: ${{ github.ref }}
90-
# release_name: Release ${{ github.ref }}
91-
# draft: true
92-
# prerelease: true
93-
# - name: Upload Release Asset
94-
# id: upload-release-asset
95-
# uses: actions/upload-release-asset@v1
96-
# env:
97-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98-
# with:
99-
# 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
100-
# asset_path: ./webhook.zip
101-
# asset_name: parser-${{ steps.tag_name.outputs.TAG }}.zip
102-
# asset_content_type: application/zip
55+
cd dist && zip -r ../${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

0 commit comments

Comments
 (0)