Skip to content

Commit

Permalink
feat: add source code as separate zip
Browse files Browse the repository at this point in the history
  • Loading branch information
builder555 committed Mar 12, 2023
1 parent 8016111 commit 7814979
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,29 @@ jobs:
id: release-url
run: |
echo "release_url=${{ steps.create-release.outputs.upload_url }}" >> $GITHUB_OUTPUT
package-source:
name: Package Source
needs: create-release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compress Source
id: compress-source
run: |
zip_name=${{needs.create-release.outputs.name}}-source-${{needs.create-release.outputs.tag}}.zip
zip -x ci -x CODE_OF_CONDUCT.md -x CHANGELOG.md -x full_settings.png -r $zipname ./
echo "asset_path="$(dirname "${PWD}")/${name}.zip" >> $GITHUB_OUTPUT
echo "asset_name=$zip_name" >> $GITHUB_OUTPUT
- name: Upload source
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.release_url}}
asset_path: ${{ steps.compress-source.outputs.asset_path }}
asset_name: ${{ steps.compress-source.outputs.asset_name }}
asset_content_type: application/zip
build:
name: Build Packages
needs: create-release
Expand Down

0 comments on commit 7814979

Please sign in to comment.