ComputerCreate v0.9.1 #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish on platforms (latest) | |
on: | |
# Triggers the action when a release is published | |
release: | |
types: [ published ] | |
branches: [ "main" ] | |
jobs: | |
publish: | |
name: Publish latest versions | |
runs-on: ubuntu-latest | |
steps: | |
# Get the source code | |
- uses: actions/checkout@v3 | |
# Package the resource pack nicely | |
- name: Run the resource pack packager | |
run: | | |
cd $GITHUB_WORKSPACE | |
python3 distribute.py --min 15 | |
# Upload the new release on Curseforge | |
- name: "Upload to CurseForge" | |
uses: itsmeow/curseforge-upload@v3 | |
with: | |
token: "${{ secrets.CF_API_TOKEN }}" | |
file_path: "./ComputerCreate.zip" | |
game_endpoint: "minecraft" | |
project_id: "603936" | |
changelog: ${{ github.event.release.body }} | |
game_versions: "Minecraft 1.20.1" | |
# Upload the new release on Modrinth | |
- name: Upload to Modrinth | |
uses: RubixDev/[email protected] | |
with: | |
token: ${{ secrets.MODRINTH_TOKEN }} | |
file_path: ./ComputerCreate.zip | |
name: ComputerCreate ${{ github.event.release.tag_name }} | |
version: ${{ github.event.release.tag_name }} | |
changelog: ${{ github.event.release.body }} | |
game_versions: "1.20" | |
release_type: release | |
featured: true | |
project_id: KqGEAQeu | |
loaders: minecraft | |
# Upload the package on the release | |
- name: Upload to the GitHub release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./ComputerCreate.zip | |
asset_name: ComputerCreate.zip | |
asset_content_type: application/gzip |