forked from Stratio/cluster-api-provider-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cd10fc
commit d0ad12d
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |