mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Split out non-Python assets in Publish Release workflow (#6440)
This commit is contained in:
parent
2595c9de10
commit
907a3f7561
10
.github/workflows/publish_release.yml
vendored
10
.github/workflows/publish_release.yml
vendored
@ -98,14 +98,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
APP_YML_FILE: "Red-DiscordBot-${{ github.ref_name }}-default-lavalink-application.yml"
|
APP_YML_FILE: "Red-DiscordBot-${{ github.ref_name }}-default-lavalink-application.yml"
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p release_assets
|
||||||
python .github/workflows/scripts/get_default_ll_server_config.py "dist/$APP_YML_FILE"
|
python .github/workflows/scripts/get_default_ll_server_config.py "release_assets/$APP_YML_FILE"
|
||||||
|
|
||||||
- name: Upload default application.yml
|
- name: Upload default application.yml
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ll-default-server-config
|
name: ll-default-server-config
|
||||||
path: ./dist
|
path: ./release_assets
|
||||||
|
|
||||||
release_to_pypi:
|
release_to_pypi:
|
||||||
needs:
|
needs:
|
||||||
@ -129,13 +129,13 @@ jobs:
|
|||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ll-default-server-config
|
name: ll-default-server-config
|
||||||
path: dist/
|
path: release_assets/
|
||||||
|
|
||||||
- name: Upload dists to GitHub Release
|
- name: Upload dists to GitHub Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ github.token }}"
|
GITHUB_TOKEN: "${{ github.token }}"
|
||||||
run: |
|
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
|
- name: Publish package distributions to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user