Switch To App (#589)

[SKIP]
This commit is contained in:
Integer Limit 2024-01-03 20:04:25 +11:00 committed by GitHub
parent 60e1f55449
commit e125945743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 21 deletions

View File

@ -59,14 +59,20 @@ jobs:
env:
GITHUB_TAG: ${{ inputs.tag }}
RELEASE_TYPE: ${{ inputs.release_type }}
permissions:
contents: write
steps:
- name: Get Token
id: token
uses: peter-murray/workflow-application-token-action@v2.1.0
with:
application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APP_KEY }}
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.tag }}
token: ${{ steps.token.outputs.token }}
- name: Restore Cached Files
uses: actions/cache@v3
@ -104,7 +110,9 @@ jobs:
id: "commit-template"
with:
commit_message: "Upload Changelogs for Release ${{ inputs.tag }}"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
commit_author: Nomi CEu Management <nomi-ceu-management@users.noreply.github.com>
commit_user_name: Nomi CEu Management
commit_user_email: nomi-ceu-management@users.noreply.github.com
branch: ${{ inputs.branch }}
create_branch: true

View File

@ -65,8 +65,6 @@ jobs:
tag: ${{ inputs.tag }}
release_type: ${{ inputs.release_type }}
secrets: inherit
permissions:
contents: write
deployCF:
name: Deploy to CurseForge (${{ inputs.tag }})

View File

@ -18,9 +18,14 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_TAG: ${{ inputs.tag }}
permissions:
contents: write
steps:
- name: Get Token
id: token
uses: peter-murray/workflow-application-token-action@v2.1.0
with:
application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APP_KEY }}
- name: Checkout Tag
uses: actions/checkout@v4
with:
@ -65,7 +70,7 @@ jobs:
- name: Deploy to GitHub Releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
CURSEFORGE_PROJECT_ID: ${{ secrets.CURSEFORGE_PROJECT_ID }}
CURSEFORGE_API_TOKEN: ${{ secrets.CURSEFORGE_API_TOKEN }}
RELEASE_TYPE: ${{ inputs.release_type }}

View File

@ -30,8 +30,6 @@ jobs:
tag: ${{ inputs.tag }}
release_type: ${{ inputs.release_type }}
secrets: inherit
permissions:
contents: write
createChangelog:
name: Create Changelog (${{ inputs.tag }})
@ -43,5 +41,3 @@ jobs:
compare_tag: ${{ inputs.compare_tag }}
branch: ${{ inputs.branch }}
secrets: inherit
permissions:
contents: write

View File

@ -56,11 +56,18 @@ jobs:
RELEASE_TYPE: ${{ inputs.release_type }}
steps:
- name: Get Token
id: token
uses: peter-murray/workflow-application-token-action@v2.1.0
with:
application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APP_KEY }}
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.SSH_KEY }}
token: ${{ steps.token.outputs.token }}
- name: Restore Cached Files
uses: actions/cache@v3
@ -102,7 +109,9 @@ jobs:
if: ${{ !inputs.update_files }}
with:
commit_message: "${{ inputs.release_type }} ${{ inputs.tag }}\n\n[NO CATEGORY]"
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit_author: Nomi CEu Management <nomi-ceu-management@users.noreply.github.com>
commit_user_name: Nomi CEu Management
commit_user_email: nomi-ceu-management@users.noreply.github.com
tagging_message: "${{ inputs.tag }}"
- name: Commit and Push Update Changes
@ -111,7 +120,9 @@ jobs:
if: ${{ inputs.update_files }}
with:
commit_message: "Update Issue, Server and RP Config Files from Templates\n\n[SKIP]"
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit_author: Nomi CEu Management <nomi-ceu-management@users.noreply.github.com>
commit_user_name: Nomi CEu Management
commit_user_email: nomi-ceu-management@users.noreply.github.com
- name: Throw Error if No Changes were Detected
if: ${{ steps.commit-release.outputs.changes_detected == 'false' || steps.commit-update.outputs.changes_detected == 'false' }}

View File

@ -39,8 +39,6 @@ jobs:
tag: ${{ inputs.tag }}
release_type: ${{ inputs.release_type }}
secrets: inherit
permissions:
contents: write
build:
name: Build Pack (${{ inputs.tag }})
@ -64,8 +62,6 @@ jobs:
tag: ${{ inputs.tag }}
release_type: ${{ inputs.release_type }}
secrets: inherit
permissions:
contents: write
deployCF:
name: Deploy to CurseForge (${{ inputs.tag }})

View File

@ -16,5 +16,3 @@ jobs:
release_type: "Cutting Edge Build"
test: true
secrets: inherit
permissions:
contents: write