Skip to content

Commit

Permalink
Merge pull request #64 from eMoflon/feature/update-github-actions
Browse files Browse the repository at this point in the history
Updates GitHub Actions: checkout, download artifact, upload artifact
  • Loading branch information
maxkratz committed Feb 27, 2024
2 parents aea3569 + a0cd345 commit 2173398
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
wget -q $HUGO_RELEASE_SRC/download/v$VERSION/$HUGO_DEB_FILE
sudo dpkg -i $HUGO_DEB_FILE
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build production site
run: |
hugo
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: public-prod
path: public/
Expand All @@ -41,7 +41,7 @@ jobs:
rm -rf public/*
hugo -D
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: public-draft
path: public/
Expand All @@ -51,9 +51,9 @@ jobs:
runs-on: [ubuntu-20.04]
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download Hugo build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: public-prod
path: public
Expand All @@ -71,7 +71,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Download Hugo build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: public-prod
- name: Push build artifacts to deployment repository
Expand All @@ -92,7 +92,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/testing/deploy' }}
steps:
- name: Download Hugo build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: public-draft
- name: Push build artifacts to deployment repository
Expand Down

0 comments on commit 2173398

Please sign in to comment.