Skip to content

Commit

Permalink
Let's play with that github action a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
AhoyLemon committed Apr 18, 2024
1 parent 7639c41 commit e6b5586
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -22,22 +22,24 @@ concurrency:
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: πŸ›’ Checkout source Git branch
uses: actions/checkout@v4
- name: Setup Pages
- name: πŸ§‘β€πŸ”§ Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
- name: πŸ“€ Uploading artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
- name: 🚒 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: 🫠 This job's status is ${{ job.status }}.
run: echo "🫠 This job's status is ${{ job.status }}."
- name: 🌐 Deployed to ${{ steps.deployment.outputs.page_url }}.
run: echo "🌐 Deployed to ${{ steps.deployment.outputs.page_url }}."

0 comments on commit e6b5586

Please sign in to comment.