diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5af5f233..85eacd64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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