Skip to content

Commit

Permalink
Merge pull request #46 from rhettre/feature/release-workflow
Browse files Browse the repository at this point in the history
updated release workflow
  • Loading branch information
rhettre authored Jul 27, 2024
2 parents 5810f79 + d76cd6f commit 45fc788
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/lambda-layer.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Workflow

on:
push:
tags:
- 'v*'

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build layer.zip
run: |
zip -r layer.zip coinbase_advancedtrade_python
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./layer.zip
asset_name: layer.zip
asset_content_type: application/zip

0 comments on commit 45fc788

Please sign in to comment.