Revert "revert release workflow changes"
This reverts commit fc87506745.
This commit is contained in:
44
.github/workflows/theseus-release.yml
vendored
44
.github/workflows/theseus-release.yml
vendored
@@ -1,47 +1,43 @@
|
|||||||
name: Modrinth App release
|
name: Modrinth App release
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_run:
|
||||||
inputs:
|
workflows: ['Modrinth App build']
|
||||||
version-tag:
|
types: [completed]
|
||||||
description: Version tag to release to the wide public
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
release-notes:
|
|
||||||
description: Release notes to include in the Tauri version manifest
|
|
||||||
default: A new release of the Modrinth App is available!
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release Modrinth App
|
name: Release Modrinth App
|
||||||
|
if: >-
|
||||||
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
|
startsWith(github.event.workflow_run.head_branch, 'v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
VERSION_TAG: ${{ github.event.workflow_run.head_branch }}
|
||||||
LINUX_X64_BUNDLE_ARTIFACT_NAME: App bundle (x86_64-unknown-linux-gnu)
|
LINUX_X64_BUNDLE_ARTIFACT_NAME: App bundle (x86_64-unknown-linux-gnu)
|
||||||
WINDOWS_X64_BUNDLE_ARTIFACT_NAME: App bundle (x86_64-pc-windows-msvc)
|
WINDOWS_X64_BUNDLE_ARTIFACT_NAME: App bundle (x86_64-pc-windows-msvc)
|
||||||
MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME: App bundle (universal-apple-darwin)
|
MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME: App bundle (universal-apple-darwin)
|
||||||
LAUNCHER_FILES_BUCKET_BASE_URL: https://launcher-files.modrinth.com
|
LAUNCHER_FILES_BUCKET_BASE_URL: https://launcher-files.modrinth.com
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: 📥 Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 📥 Download Modrinth App artifacts
|
- name: 📥 Download Modrinth App artifacts
|
||||||
uses: dawidd6/action-download-artifact@v11
|
uses: dawidd6/action-download-artifact@v11
|
||||||
with:
|
with:
|
||||||
workflow: theseus-build.yml
|
workflow: theseus-build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
event: push
|
event: push
|
||||||
branch: ${{ inputs.version-tag }}
|
branch: ${{ env.VERSION_TAG }}
|
||||||
use_unzip: true
|
use_unzip: true
|
||||||
|
|
||||||
- name: 🛠️ Generate version manifest
|
- name: 🛠️ Generate version manifest
|
||||||
env:
|
|
||||||
VERSION_TAG: ${{ inputs.version-tag }}
|
|
||||||
RELEASE_NOTES: ${{ inputs.release-notes }}
|
|
||||||
run: |
|
run: |
|
||||||
# Reference: https://tauri.app/plugin/updater/#server-support
|
# Reference: https://tauri.app/plugin/updater/#server-support
|
||||||
jq -nc \
|
jq -nc \
|
||||||
--arg versionTag "${VERSION_TAG#v}" \
|
--arg versionTag "${VERSION_TAG#v}" \
|
||||||
--arg releaseNotes "$RELEASE_NOTES" \
|
--arg releaseNotes "See the full changelog at https://modrinth.com/news/changelog" \
|
||||||
--rawfile macOsAarch64UpdateArtifactSignature "${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz.sig" \
|
--rawfile macOsAarch64UpdateArtifactSignature "${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz.sig" \
|
||||||
--rawfile macOsX64UpdateArtifactSignature "${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz.sig" \
|
--rawfile macOsX64UpdateArtifactSignature "${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz.sig" \
|
||||||
--rawfile linuxX64UpdateArtifactSignature "${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/appimage/Modrinth App_${VERSION_TAG#v}_amd64.AppImage.tar.gz.sig" \
|
--rawfile linuxX64UpdateArtifactSignature "${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/appimage/Modrinth App_${VERSION_TAG#v}_amd64.AppImage.tar.gz.sig" \
|
||||||
@@ -83,7 +79,6 @@ jobs:
|
|||||||
|
|
||||||
- name: 📤 Upload release artifacts
|
- name: 📤 Upload release artifacts
|
||||||
env:
|
env:
|
||||||
VERSION_TAG: ${{ inputs.version-tag }}
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.LAUNCHER_FILES_BUCKET_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.LAUNCHER_FILES_BUCKET_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.LAUNCHER_FILES_BUCKET_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.LAUNCHER_FILES_BUCKET_SECRET_ACCESS_KEY }}
|
||||||
AWS_BUCKET: ${{ secrets.LAUNCHER_FILES_BUCKET_NAME }}
|
AWS_BUCKET: ${{ secrets.LAUNCHER_FILES_BUCKET_NAME }}
|
||||||
@@ -116,3 +111,18 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
aws s3 cp updates.json "s3://${AWS_BUCKET}"
|
aws s3 cp updates.json "s3://${AWS_BUCKET}"
|
||||||
|
|
||||||
|
- name: 🏷️ Create GitHub release
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: |
|
||||||
|
VERSION="${VERSION_TAG#v}"
|
||||||
|
|
||||||
|
gh release create "$VERSION_TAG" \
|
||||||
|
--title "Modrinth App ${VERSION}" \
|
||||||
|
--notes "See the full changelog at https://modrinth.com/news/changelog" \
|
||||||
|
"${WINDOWS_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/nsis/Modrinth App_${VERSION}_x64-setup.exe" \
|
||||||
|
"${MACOS_UNIVERSAL_BUNDLE_ARTIFACT_NAME}/universal-apple-darwin/release/bundle/dmg/Modrinth App_${VERSION}_universal.dmg" \
|
||||||
|
"${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/appimage/Modrinth App_${VERSION}_amd64.AppImage" \
|
||||||
|
"${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/deb/Modrinth App_${VERSION}_amd64.deb" \
|
||||||
|
"${LINUX_X64_BUNDLE_ARTIFACT_NAME}/release/bundle/rpm/Modrinth App-${VERSION}-1.x86_64.rpm"
|
||||||
|
|||||||
Reference in New Issue
Block a user