Skip to content

Commit

Permalink
Create build-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DEADSEC-SECURITY authored Mar 5, 2024
1 parent d020c1d commit f877ba1
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build Linux

on:
release:
types: [created]

permissions:
contents: write

jobs:
build:
name: Build
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 -r 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: AlexaActionsLinux.zip
asset_content_type: application/zip

0 comments on commit f877ba1

Please sign in to comment.