Skip to content

Commit

Permalink
Test deploy job from build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Oct 25, 2023
1 parent ebca096 commit bbd9b48
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
# Runs on pull requests to check that the website is building without errors
pull_request:

# Runs on push/merge to main to deploy the new website
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -29,3 +33,18 @@ jobs:
with:
name: build
path: ./build/blog

deploy:
needs: [build]
if: ${{ github.event_name == "push" }}
runs-on: ubuntu-latest
steps:
- name: 🛠️ Setup build directory
run: |
mkdir -p build/blog
- name: 📥 Download build Artifacts
uses: actions/download-artifact@v3
with:
name: build
path: build/blog
- run: tree

0 comments on commit bbd9b48

Please sign in to comment.