Skip to content

Commit

Permalink
Create manual-upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
acodili-jg authored Jul 26, 2023
1 parent 6b5f9db commit ff456a7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/manual-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Manual upload
on:
workflow_dispatch:
inputs:
version_type:
description: Version type
required: false
default: release
type: choice
options:
- release
- beta
- alpha
changelog:
description: Changelog
required: false
default: ''
type: string

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build and capture artifacts
uses: ./.github/actions/build
- name: Upload to Modrinth
run: ./gradlew modrinth
env:
MODRINTH_CHANGELOG: ${{ inputs.changelog }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_VERSION_TYPE: ${{ inputs.version_type }}

0 comments on commit ff456a7

Please sign in to comment.