-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dede17
commit 7925c65
Showing
1 changed file
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ permissions: | |
contents: write | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
build-with-binary: | ||
name: Build with Binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
@@ -45,5 +45,44 @@ jobs: | |
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: alexa-actions-linux.zip | ||
asset_name: AlexaActionsLinux.zip | ||
asset_name: AlexaActionsWithBinaryLinux.zip | ||
asset_content_type: application/zip | ||
build-no-binary: | ||
name: Build no Binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install zip gzip tar | ||
- name: Install Python dependencies | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Install requirements to lambda folder | ||
run: "pip install --no-binary :all: --no-deps -r lambda/requirements.txt -t lambda/" | ||
|
||
- name: Zip Lambda fodler | ||
run: zip -r alexa-actions-linux.zip lambda | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: alexa-actions-linux.zip | ||
asset_name: AlexaActionsNoBinaryLinux.zip | ||
asset_content_type: application/zip |