From d0a2f755b10cbc546178c09ac6a76bc70ec1b285 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Thu, 10 Aug 2023 23:22:51 +0200 Subject: [PATCH] Add workflows --- .../workflows/update_curseforge_releases.yml | 28 +++++++++++++++++++ .../workflows/update_modrinth_releases.yml | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/update_curseforge_releases.yml create mode 100644 .github/workflows/update_modrinth_releases.yml diff --git a/.github/workflows/update_curseforge_releases.yml b/.github/workflows/update_curseforge_releases.yml new file mode 100644 index 0000000..c4cc962 --- /dev/null +++ b/.github/workflows/update_curseforge_releases.yml @@ -0,0 +1,28 @@ + +name: 'Update Curseforge Releases' + +on: + push: + branches: + - main + repository_dispatch: + types: + - update-curseforge-releases + +permissions: + contents: write + +jobs: + update_github_releases: + name: Update Curseforge Release Index + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + concurrency: + group: update-curseforge-releases + cancel-in-progress: true + steps: + - uses: actions/checkout@v3 + - run: npm ci + - run: npm run index-curseforge-releases + - uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a diff --git a/.github/workflows/update_modrinth_releases.yml b/.github/workflows/update_modrinth_releases.yml new file mode 100644 index 0000000..47cafa7 --- /dev/null +++ b/.github/workflows/update_modrinth_releases.yml @@ -0,0 +1,28 @@ + +name: 'Update Modrinth Releases' + +on: + push: + branches: + - main + repository_dispatch: + types: + - update-modrinth-releases + +permissions: + contents: write + +jobs: + update_github_releases: + name: Update Modrinth Release Index + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + concurrency: + group: update-modrinth-releases + cancel-in-progress: true + steps: + - uses: actions/checkout@v3 + - run: npm ci + - run: npm run index-modrinth-releases + - uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a