Skip to content

Commit

Permalink
Fix deploy download artifacts and conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptAutomate committed Nov 27, 2024
1 parent 2e2de2a commit 209a4dd
Showing 1 changed file with 4 additions and 8 deletions.
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

0 comments on commit 209a4dd

Please sign in to comment.