Skip to content

Commit

Permalink
use oryx for building packages in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
raporpe committed Jan 30, 2023
1 parent 419f83a commit c5d5b0c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/generate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@ jobs:
- name: 'Checkout GitHub action'
uses: actions/checkout@v2

- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v1
- name: 'Run docker oryx build'
uses: addnab/docker-run-action@v3
with:
python-version: ${{ env.PYTHON_VERSION }}
image: mcr.microsoft.com/oryx/build:latest
options: -v ${{ github.workspace }}:/repo
run: oryx build /repo --output /repo

- name: 'Resolve Project Dependencies Using Pip'
shell: bash
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
python -m pip install --upgrade pip
pip install -r requirements.txt --target=".python_packages/lib/site-packages"
zip -r release.zip .
popd
- name: Zip everything
run: zip -r release.zip *

- name: Create Release
uses: ncipollo/[email protected]
Expand Down

0 comments on commit c5d5b0c

Please sign in to comment.