Skip to content

Commit

Permalink
Split out non-Python assets in Publish Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Aug 27, 2024
1 parent 8be7b08 commit de0b77d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ jobs:
env:
APP_YML_FILE: "Red-DiscordBot-${{ github.ref_name }}-default-lavalink-application.yml"
run: |
mkdir -p dist
python .github/workflows/scripts/get_default_ll_server_config.py "dist/$APP_YML_FILE"
mkdir -p release_assets
python .github/workflows/scripts/get_default_ll_server_config.py "release_assets/$APP_YML_FILE"
- name: Upload default application.yml
uses: actions/upload-artifact@v3
with:
name: ll-default-server-config
path: ./dist
path: ./release_assets

release_to_pypi:
needs:
Expand All @@ -129,13 +129,13 @@ jobs:
uses: actions/download-artifact@v3
with:
name: ll-default-server-config
path: dist/
path: release_assets/

- name: Upload dists to GitHub Release
env:
GITHUB_TOKEN: "${{ github.token }}"
run: |
gh release upload "$GITHUB_REF_NAME" dist/* --repo "$GITHUB_REPOSITORY"
gh release upload "$GITHUB_REF_NAME" dist/* release_assets/* --repo "$GITHUB_REPOSITORY"
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit de0b77d

Please sign in to comment.