Skip to content

Commit

Permalink
Revert changes done to release action (#5228)
Browse files Browse the repository at this point in the history
  • Loading branch information
D074360 authored Jan 9, 2025
1 parent 2d5d07f commit a90d483
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/release-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,6 @@ jobs:
cp ./piper_master-darwin.arm64 ./piper-darwin.arm64
npm install semver --quiet
echo "PIPER_version=v$(node_modules/.bin/semver -i minor $(curl --silent "https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest" | jq -r .tag_name))" >> $GITHUB_ENV
echo "ARCHIVE_NAME=jenkins-library-${{ env.PIPER_version }}" >> $GITHUB_ENV
- name: Prepare files for archiving
run: |
mkdir ${{ github.workspace }}/temp_dir
rsync -av --exclude={README.md,CONTRIBUTING.md,'*.git*','.github/workflows*'} ./ ${{ github.workspace }}/temp_dir/
- name: Create custom release ZIP
run: |
cd ${{ github.workspace }}/temp_dir
zip -r ../${{ env.ARCHIVE_NAME }}.zip .
- name: Create custom release tar.gz
run: |
cd ${{ github.workspace }}/temp_dir
tar -czvf ../${{ env.ARCHIVE_NAME }}.tar.gz .
- name: Publish custom release ZIP
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ env.ARCHIVE_NAME }}.zip
asset_name: ${{ env.ARCHIVE_NAME }}.zip
asset_content_type: application/zip

- name: Publish custom release tar.gz
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ env.ARCHIVE_NAME }}.tar.gz
asset_name: ${{ env.ARCHIVE_NAME }}.tar.gz
asset_content_type: application/gzip
- uses: SAP/project-piper-action@master
name: Publish prerelease
Expand Down

0 comments on commit a90d483

Please sign in to comment.