Skip to content

Commit ecad9fa

Browse files
Fix deploy download artifacts and conditional
1 parent 2e2de2a commit ecad9fa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-sphinx-docs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,15 @@ jobs:
5454
contents: write
5555
environment:
5656
name: release
57-
url: ${{ steps.deployment.outputs.page_url }}
5857
runs-on: ubuntu-latest
5958
needs:
6059
- build
61-
if: success() && github.ref == 'refs/heads/main'
60+
if: success() && startsWith(github.ref, 'refs/tags/')
6261
steps:
63-
- name: Download artifacts
64-
uses: actions/download-artifact@v4
6562
- name: Checkout
6663
uses: actions/checkout@v4
64+
- name: Download artifacts
65+
uses: actions/download-artifact@v4
6766
- name: Display all downloaded archives/artifacts
6867
run: |
6968
ls -lah
@@ -78,11 +77,10 @@ jobs:
7877
7978
echo "
8079
Creating checksums.txt..."
81-
sha512sum salt-install-guide.tar.gz salt.repo salt.sources > tee checksums.txt
80+
sha512sum salt-install-guide.tar.gz salt.repo salt.sources | tee checksums.txt
8281
8382
- name: Release
8483
uses: softprops/action-gh-release@v2
85-
if: startsWith(github.ref, 'refs/tags/')
8684
with:
8785
files: |
8886
checksums.txt

0 commit comments

Comments
 (0)