Skip to content

Commit 8c35588

Browse files
Merge pull request #17 from ScriptAutomate/fix-deploy
GHA deploy job fixes: Download artifacts properly for uploading release artifacts on tag
2 parents 2e2de2a + 209a4dd commit 8c35588

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,15 @@ jobs:
5252
deploy:
5353
permissions:
5454
contents: write
55-
environment:
56-
name: release
57-
url: ${{ steps.deployment.outputs.page_url }}
5855
runs-on: ubuntu-latest
5956
needs:
6057
- build
61-
if: success() && github.ref == 'refs/heads/main'
58+
if: success() && startsWith(github.ref, 'refs/tags/')
6259
steps:
63-
- name: Download artifacts
64-
uses: actions/download-artifact@v4
6560
- name: Checkout
6661
uses: actions/checkout@v4
62+
- name: Download artifacts
63+
uses: actions/download-artifact@v4
6764
- name: Display all downloaded archives/artifacts
6865
run: |
6966
ls -lah
@@ -78,11 +75,10 @@ jobs:
7875
7976
echo "
8077
Creating checksums.txt..."
81-
sha512sum salt-install-guide.tar.gz salt.repo salt.sources > tee checksums.txt
78+
sha512sum salt-install-guide.tar.gz salt.repo salt.sources | tee checksums.txt
8279
8380
- name: Release
8481
uses: softprops/action-gh-release@v2
85-
if: startsWith(github.ref, 'refs/tags/')
8682
with:
8783
files: |
8884
checksums.txt

0 commit comments

Comments
 (0)