Skip to content

Commit

Permalink
fix for the release candidate GitHub workflow (CONNECTORS-1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenPj committed Mar 26, 2024
1 parent c272154 commit eab7f92
Showing 1 changed file with 70 additions and 2 deletions.
72 changes: 70 additions & 2 deletions .github/workflows/create-release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ jobs:
git commit -am "New branch for release candidate ${{ steps.branchTag.outputs.tag }} created"
git push
- name: Create Release Candidate
id: create_release_candidate
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.branchTag.outputs.tag }}
release_name: Release Candidate ${{ steps.branchTag.outputs.tag }}
body: |
Release Candidate ${{ steps.branchTag.outputs.tag }}
draft: false
prerelease: true

- name: Set Artifact version output
id: artifactVersion
run: echo "version=${{ steps.branchVersion.outputs.version }}dev" >> $GITHUB_OUTPUT
Expand All @@ -118,27 +131,82 @@ jobs:
name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-bin.zip
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-bin.zip

- name: Upload Release Candidate Asset - Binary - zip format
id: upload-release-candidate-assets
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
asset_path: ./apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-bin.zip
asset_name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-bin.zip
asset_content_type: application/zip

- name: Upload artifacts - Lib - tar.gz format
uses: actions/[email protected]
with:
name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.tar.gz
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.tar.gz

- name: Upload Release Candidate Asset - Lib - tar.gz format
id: upload-release-candidate-assets
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
asset_path: ./apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.tar.gz
asset_name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.tar.gz
asset_content_type: application/gzip

- name: Upload artifacts - Lib - zip format
uses: actions/[email protected]
with:
name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.zip
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.zip

- name: Upload Release Candidate Asset - Lib - zip format
id: upload-release-candidate-assets
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
asset_path: ./apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.zip
asset_name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.zip
asset_content_type: application/zip

- name: Upload artifacts - Source code - tar.gz format
uses: actions/[email protected]
with:
name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.tar.gz
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src-tar.gz
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.tar.gz

- name: Upload Release Candidate Asset - Source code - tar.gz format
id: upload-release-candidate-assets
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
asset_path: ./apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.tar.gz
asset_name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.tar.gz
asset_content_type: application/gzip

- name: Upload artifacts - Source code - zip format
uses: actions/[email protected]
with:
name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.zip
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src-zip
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.zip

- name: Upload Release Candidate Asset - Source code - zip format
id: upload-release-candidate-assets
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
asset_path: ./apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.zip
asset_name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.zip
asset_content_type: application/zip

0 comments on commit eab7f92

Please sign in to comment.