Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA deploy job fixes: Download artifacts properly for uploading release artifacts on tag #17

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/build-sphinx-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,15 @@ jobs:
deploy:
permissions:
contents: write
environment:
name: release
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- build
if: success() && github.ref == 'refs/heads/main'
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Display all downloaded archives/artifacts
run: |
ls -lah
Expand All @@ -78,11 +75,10 @@ jobs:

echo "
Creating checksums.txt..."
sha512sum salt-install-guide.tar.gz salt.repo salt.sources > tee checksums.txt
sha512sum salt-install-guide.tar.gz salt.repo salt.sources | tee checksums.txt

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
checksums.txt
Expand Down