Skip to content

Commit

Permalink
Added Github Action to Push Assets
Browse files Browse the repository at this point in the history
  • Loading branch information
lreciomelero committed Oct 21, 2024
1 parent 0cd10fc commit d0ad12d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Upload Release Assets

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

steps:
# 1. Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# 2. Install dependencies if needed
# (e.g. install a compiler, Kustomize, etc.)
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make kustomize # Ajusta si necesitas instalar mas dependencias
# 3. Run Makefile to generate manifests
- name: Run Makefile to generate infrastructure-components.yaml
run: make release-manifests

# 4. Run Makefile to generate metadata.yaml
- name: Run Makefile to generate metadata.yaml
run: make release-metadata

# 5. Upload infrastructure-components.yaml as a release asset
- name: Upload infrastructure-components.yaml
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./out/infrastructure-components.yaml
asset_name: infrastructure-components.yaml
asset_content_type: application/x-yaml

# 6. Upload metadata.yaml as a release asset
- name: Upload metadata.yaml
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./out/metadata.yaml # Ajusta el path si es necesario
asset_name: metadata.yaml
asset_content_type: application/x-yaml

0 comments on commit d0ad12d

Please sign in to comment.