Skip to content

Commit

Permalink
Update build-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DEADSEC-SECURITY committed Mar 5, 2024
1 parent 7dede17 commit 7925c65
Showing 1 changed file with 42 additions and 3 deletions.
45 changes: 42 additions & 3 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 7925c65

Please sign in to comment.