Skip to content

Commit

Permalink
Add manual button for publishing site (#6000)
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoox authored Nov 22, 2024
1 parent 40beab1 commit c4e8fed
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Publish Armeria site

on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
type: string
push:
tags:
- armeria-*
Expand Down Expand Up @@ -32,7 +38,11 @@ jobs:

- name: Build the site
run: |
./gradlew --no-daemon --stacktrace --max-workers=2 --parallel -PgithubToken=${{ secrets.GITHUB_TOKEN }} site
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
./gradlew --no-daemon --stacktrace --max-workers=2 --parallel -PgithubToken=${{ secrets.GITHUB_TOKEN }} -Pversion=${{ inputs.version }} site
else
./gradlew --no-daemon --stacktrace --max-workers=2 --parallel -PgithubToken=${{ secrets.GITHUB_TOKEN }} site
fi
- name: Deploy the site
uses: peaceiris/actions-gh-pages@v4
Expand Down

0 comments on commit c4e8fed

Please sign in to comment.