Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Addo.Zhang <[email protected]>
  • Loading branch information
addozhang committed Jun 18, 2024
1 parent f675430 commit 58fd214
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/hugo-build-and-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: true
default: 'main'
workflow_dispatch:

jobs:
build:
Expand All @@ -18,8 +13,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
Expand All @@ -37,5 +30,5 @@ jobs:
- name: Upload Archive
uses: actions/upload-artifact@v2
with:
name: public-archive-${{ github.event.inputs.branch || 'main' }}
name: public-archive-${{ github.ref_name || 'main' }}
path: public

0 comments on commit 58fd214

Please sign in to comment.