diff --git a/.github/workflows/hugo-build-and-archive.yaml b/.github/workflows/hugo-build-and-archive.yaml index b19baa8..f0c4310 100644 --- a/.github/workflows/hugo-build-and-archive.yaml +++ b/.github/workflows/hugo-build-and-archive.yaml @@ -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: @@ -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 @@ -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 \ No newline at end of file