-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
125 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI Beta | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
|
||
jobs: | ||
Lint-Project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Update Image" | ||
if: ${{ env.ACT }} | ||
run: | | ||
sudo apt update | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Lint lua files | ||
uses: nebularg/actions-luacheck@v1.1.2 | ||
with: | ||
args: "--no-color -q --no-self" | ||
annotate: warning | ||
- name: Create alpha package | ||
uses: BigWigsMods/packager@master | ||
with: | ||
args: -d -z | ||
- name: Upload alpha package to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SwitchSwitch-Beta.zip | ||
path: | | ||
.release/* | ||
- name: Remove old artifacts | ||
uses: c-hive/gha-remove-artifacts@v1 | ||
with: | ||
age: '3 month' | ||
skip-tags: true | ||
Deploy-Packages: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
needs: Lint-Project | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Upload locales strings to CurseForge | ||
run: ./CurseForge_UpldateTranslations.sh | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
- name: Create and uploat to curseforge | ||
uses: BigWigsMods/packager@master | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
WOWI_API_TOKEN : ${{ secrets.WOWI_API_TOKEN }} | ||
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} |
108 changes: 54 additions & 54 deletions
108
.github/workflows/build.yml → .github/workflows/build_main.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
Lint-Project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Update Image" | ||
if: ${{ env.ACT }} | ||
run: | | ||
sudo apt update | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Lint lua files | ||
uses: nebularg/actions-luacheck@v1.1.2 | ||
with: | ||
args: "--no-color -q --no-self" | ||
annotate: warning | ||
- name: Create alpha package | ||
uses: BigWigsMods/packager@master | ||
with: | ||
args: -d -z | ||
- name: Upload alpha package to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SwitchSwitch.zip | ||
path: | | ||
.release/* | ||
- name: Remove old artifacts | ||
uses: c-hive/gha-remove-artifacts@v1 | ||
with: | ||
age: '3 month' | ||
skip-tags: true | ||
|
||
Deploy-Packages: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
needs: Lint-Project | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Upload locales strings to CurseForge | ||
run: ./CurseForge_UpldateTranslations.sh | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
- name: Create and uploat to curseforge | ||
uses: BigWigsMods/packager@master | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
WOWI_API_TOKEN : ${{ secrets.WOWI_API_TOKEN }} | ||
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
Lint-Project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Update Image" | ||
if: ${{ env.ACT }} | ||
run: | | ||
sudo apt update | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Lint lua files | ||
uses: nebularg/actions-luacheck@v1.1.2 | ||
with: | ||
args: "--no-color -q --no-self" | ||
annotate: warning | ||
- name: Create alpha package | ||
uses: BigWigsMods/packager@master | ||
with: | ||
args: -d -z | ||
- name: Upload alpha package to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SwitchSwitch.zip | ||
path: | | ||
.release/* | ||
- name: Remove old artifacts | ||
uses: c-hive/gha-remove-artifacts@v1 | ||
with: | ||
age: '3 month' | ||
skip-tags: true | ||
|
||
Deploy-Packages: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
needs: Lint-Project | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Upload locales strings to CurseForge | ||
run: ./CurseForge_UpldateTranslations.sh | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
- name: Create and uploat to curseforge | ||
uses: BigWigsMods/packager@master | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
WOWI_API_TOKEN : ${{ secrets.WOWI_API_TOKEN }} | ||
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Update curse forge translations | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
UpdateTranslations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Upload locales strings to CurseForge | ||
run: ./CurseForge_UpldateTranslations.sh | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} |