Skip to content

Commit

Permalink
Restore secret for asset upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 28, 2024
1 parent bfa41c8 commit 59be029
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,28 +126,6 @@ jobs:
with:
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}

#upload-build-artifacts:
# name: Deploy Prebuilt Python Builds
# if: ${{ inputs.kind == 'release' && success() }}
# uses: ./.github/workflows/deploy-build-action.yml
# needs:
# - build-python-package
# - build-native
# - test-fips
# #- build-cross
# with:
# version: "${{ needs.build-python-package.outputs.version }}"

#upload-toolchain-artifacts:
# name: Deploy Toolchain
# if: ${{ inputs.kind == 'release' && success() }}
# uses: ./.github/workflows/deploy-toolchain-action.yml
# needs:
# - build-python-package
# - toolchain
# with:
# version: "${{ needs.build-python-package.outputs.version }}"

deploy-python-package:
name: Deploy Python Package
uses: ./.github/workflows/deploy-package-action.yml
Expand All @@ -158,8 +136,6 @@ jobs:
- docs
- build-python-package
- test-fips
# - upload-build-artifacts
# - upload-toolchain-artifacts

create-release:
name: Create Github Release
Expand All @@ -185,8 +161,6 @@ jobs:
#- build-cross
- test
- docs
# - upload-build-artifacts
# - upload-toolchain-artifacts
- deploy-python-package
- create-release
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ jobs:
- name: Upload ${{ matrix.python }}-${{ matrix.arch }}-${{ matrix.platform }}.tar.xz
id: upload-python-build-assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_name: ${{ matrix.python }}-${{ matrix.arch }}-${{ matrix.platform }}.tar.xz
Expand Down
2 changes: 1 addition & 1 deletion relenv/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import time

# relenv package version
__version__ = "0.17.400005"
__version__ = "0.17.400006"

MODULE_DIR = pathlib.Path(__file__).resolve().parent

Expand Down
2 changes: 1 addition & 1 deletion relenv/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def fetch(version, triplet, python, check_hosts=CHECK_HOSTS):
if check_url(url, timeout=5):
break
else:
print(f"Unable to find file on any hosts {' '.join(check_hosts)}")
print(f"Unable to find file on any hosts: github.com {' '.join(x.split('/')[0] for x in check_hosts)}")
sys.exit(1)
builddir = work_dir("build", DATA_DIR)
os.makedirs(builddir, exist_ok=True)
Expand Down

0 comments on commit 59be029

Please sign in to comment.