Skip to content

Commit

Permalink
chore: Added extra build files
Browse files Browse the repository at this point in the history
  • Loading branch information
peti446 committed Nov 22, 2023
1 parent 143c4e8 commit d6f6ada
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 54 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build_beta.yml
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 .github/workflows/build.yml → .github/workflows/build_main.yml
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 }}
15 changes: 15 additions & 0 deletions .github/workflows/update_translations.yml
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 }}

0 comments on commit d6f6ada

Please sign in to comment.