Skip to content

Commit

Permalink
Add default source code archives back in
Browse files Browse the repository at this point in the history
  • Loading branch information
philnewm committed Sep 23, 2024
1 parent 80f71cd commit 9bba9e8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ env:
PATCH: ${{ inputs.patch || vars.PATCH }}
RELEASE_NAME: ${{ inputs.name || '' }}
ARTIFACT_NAME: "${{ vars.PROJECT_NAME }}-package"
ZIP_FILE: ${{ vars.PROJECT_NAME }}-source.zip
TAR_FILE: ${{ vars.PROJECT_NAME }}-source.tar.gz
PROJECT_NAME: "${{ vars.PROJECT_NAME }}"
REQUIRED_VARS: MAIN_BRANCH,MINOR_BUMP_LABEL,PATCH_BUMP_LABEL,PROJECT_NAME

Expand Down Expand Up @@ -248,7 +250,12 @@ jobs:
sed -i "s/^version = \".*\"/version = \"${{ env.NEXT_VERSION }}\"/" package.py
sed -i "s/^name = \".*\"/name = \"${{ env.PROJECT_NAME }}\"/" package.py
- name: Create artifacts
- name: Create source artifacts
run: |
zip -r ${{ env.ZIP_FILE }} . -x "*/\.*"
tar -czvf ${{ env.TAR_FILE }} --exclude=".*" .
- name: Create package artifacts
id: create-artifact
run: |
python create_package.py --output ${{ env.OUTPUT_DIR }}
Expand All @@ -261,7 +268,7 @@ jobs:
- name: Add generated files from ${{ vars.MAIN_BRANCH }}
run: |
git add . -- ':!${{ env.OUTPUT_DIR }}/${{ steps.create-artifact.outputs.file_name }}'
git add . -- ':!${{ env.OUTPUT_DIR }}/${{ steps.create-artifact.outputs.file_name }}' ':!${{ env.ZIP_FILE }}' ':!${{ env.TAR_FILE }}'
git commit -m "[Automated] Add generated package files from ${{ vars.MAIN_BRANCH }}"
git tag -a ${{ env.NEXT_VERSION }} -m "[Automated] Release version ${{ env.NEXT_VERSION }}"
Expand All @@ -279,6 +286,8 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: |
${{ env.OUTPUT_DIR }}/${{ steps.create-artifact.outputs.file_name }}
${{ env.ZIP_FILE }}
${{ env.TAR_FILE }}
update-develop:
Expand Down

0 comments on commit 9bba9e8

Please sign in to comment.