Skip to content

Commit

Permalink
Merge pull request #37 from OpenRailAssociation/workflow-artifact-imp…
Browse files Browse the repository at this point in the history
…rovement

Make artifact handling in GitHub workflows more efficient
  • Loading branch information
mxmehl authored Sep 18, 2024
2 parents fcba327 + f3b7aa2 commit cfcde48
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: public
name: github-pages
path: ./public
include-hidden-files: true
retention-days: 1
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: public
name: github-pages
path: .

- name: Link Checker
Expand All @@ -79,17 +79,6 @@ jobs:
# Only deploy if on main branch
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: public
path: ./public

- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit cfcde48

Please sign in to comment.